/* =====================================================
   FORGOT PASSWORD PAGE - Professional Design
   Extends register.css with additional forgot password styles
   ===================================================== */

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 24px;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #6b7280;
    transition: all 0.3s ease;
    position: relative;
}

.step-dot.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: scale(1.1);
}

.step-dot.completed {
    background: #10b981;
    color: white;
}

.step-dot::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
    background: #e5e7eb;
}

.step-dot:last-child::after {
    display: none;
}

.step-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    margin-top: 24px;
}

.back-to-login a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-to-login a:hover {
    color: #1e40af;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-box p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.6;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #1e3a8a;
}

/* Forgot Password Header */
.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.register-header p {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

/* Error & Success Messages */
.alert {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.alert-error::before {
    content: '⚠️';
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    color: #065f46;
}

.alert-success::before {
    content: '✓';
}

/* Forms */
.register-form,
.otp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Phone Input */
.phone-input {
    display: flex;
    gap: 8px;
}

.country-code-select,
.phone-number-input,
.form-input {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.country-code-select {
    min-width: 130px;
    background: #ffffff;
    cursor: pointer;
}

.phone-number-input,
.form-input {
    flex: 1;
}

.country-code-select:focus,
.phone-number-input:focus,
.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Form Help Text */
.form-help {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* OTP Inputs */
.otp-label {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.otp-input {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    transform: translateX(-4px);
}

/* reCAPTCHA Container */
#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

/* Password Strength Indicator (Optional Enhancement) */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    transition: all 0.3s;
}

.password-strength.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength.strong {
    width: 100%;
    background: #10b981;
}

/* Loading Spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Step Animation */
@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-form,
.otp-form {
    animation: stepFadeIn 0.4s ease;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .step-indicator {
        padding: 0 12px;
    }

    .step-dot {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .otp-inputs {
        gap: 12px;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 24px 16px;
    }

    .register-card {
        padding: 32px 24px;
    }

    .register-header h2 {
        font-size: 28px;
    }

    .step-indicator {
        gap: 8px;
        padding: 0 8px;
    }

    .step-dot {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-dot::after {
        width: 6px;
        right: -10px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .step-dot {
        border: 2px solid currentColor;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .register-container::before,
    .register-container::after,
    .btn,
    #recaptcha-container,
    .back-to-login {
        display: none !important;
    }

    .register-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* =====================================================
   END OF FORGOT PASSWORD CSS
   ===================================================== */