/**
 * Forgot Password - CSS Styles
 * Modern, professional design with smooth animations
 */

/* Container & Layout */
.forgot-password-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f2f5;
    border: 3px solid #e0e4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-circle.active {
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, #7c3aed 100%);
    border-color: var(--primary-color, #4f46e5);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transform: scale(1.05);
}

.step-circle.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color, #4f46e5);
    font-weight: 600;
}

.step-line {
    width: 100px;
    height: 3px;
    background: #e0e4e8;
    margin: 0 -10px;
    position: relative;
    top: -30px;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: linear-gradient(90deg, #10b981 0%, var(--primary-color, #4f46e5) 100%);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color, #4f46e5);
    animation: pulse 2s infinite;
}

.icon-wrapper.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #10b981;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }
}

.step-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.step-header .subtitle {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.step-header .subtitle strong {
    color: var(--primary-color, #4f46e5);
    font-weight: 600;
}

/* Form Styling */
.forgot-password-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #4f46e5);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* OTP Input */
.otp-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color, #4f46e5);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: #10b981;
    background: #f0fdf4;
    color: #10b981;
}

.otp-input.error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin: 20px 0;
}

.timer-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color, #4f46e5);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-link:hover:not(:disabled) {
    color: #7c3aed;
    text-decoration: underline;
}

.btn-link:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-color, #4f46e5);
}

/* Password Strength */
.password-strength {
    margin: 16px 0;
}

.strength-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.strength-text span {
    font-weight: 600;
}

.strength-text span.weak {
    color: #ef4444;
}

.strength-text span.medium {
    color: #f59e0b;
}

.strength-text span.strong {
    color: #10b981;
}

/* Password Requirements */
.password-requirements {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px 0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    font-size: 13px;
    color: #6b7280;
    padding: 4px 0;
    display: flex;
    align-items: center;
}

.requirements-list li i {
    margin-right: 8px;
    font-size: 14px;
    color: #ef4444;
}

.requirements-list li.valid i {
    color: #10b981;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #4f46e5) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.w-100 {
    width: 100%;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back to Login */
.back-to-login {
    text-align: center;
    padding: 16px;
}

.back-to-login a,
.back-to-login .btn-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-login a:hover,
.back-to-login .btn-link:hover {
    color: var(--primary-color, #4f46e5);
}

/* Success Animation */
.success-animation {
    text-align: center;
    margin-bottom: 30px;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #10b981;
}

.icon-line {
    height: 5px;
    background-color: #10b981;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(16, 185, 129, 0.2);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: white;
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .forgot-password-container {
        margin: 30px auto;
    }

    .progress-steps {
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-line {
        width: 60px;
        top: -25px;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .step-header h1 {
        font-size: 24px;
    }

    .forgot-password-form {
        padding: 30px 24px;
    }

    .otp-input-group {
        gap: 8px;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
    }
}
