/* Forgot Password Modal Styles */

.forgot-password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.forgot-password-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
    position: relative;
}

.forgot-password-header {
    padding: 30px 30px 25px;
    border-bottom: none;
    position: relative;
    background: #4a5cc5;
    border-radius: 20px 20px 0 0;
}

.fp-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fp-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #4a5cc5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fp-header-text {
    flex: 1;
}

.fp-header-text h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.fp-header-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.forgot-password-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.forgot-password-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.forgot-password-body {
    padding: 30px;
}

.fp-step {
    display: none;
}

.fp-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.fp-form-group {
    margin-bottom: 20px;
}

.fp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.fp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.fp-input:focus {
    outline: none;
    border-color: #0459baff;
    box-shadow: 0 0 0 3px rgba(4, 89, 186, 0.1);
}

.fp-input.error {
    border-color: #dc3545;
}

.fp-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.fp-error-message.show {
    display: block;
}

.fp-phone-verify {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.fp-phone-verify .fp-error-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.fp-phone-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    text-align: center;
}

.fp-phone-display {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.fp-phone-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 40px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    background: #e8f0fe;
    border-radius: 8px;
    border: 2px solid #d0e7ff;
}

/* Hidden digits shown as # */
.fp-phone-digit:has(+ .fp-phone-digit),
.fp-phone-digit {
    /* Default style already applied above */
}

.fp-phone-input {
    width: 32px;
    height: 40px;
    text-align: center;
    border: 2px solid #0459baff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    padding: 0;
    background: white;
    color: #0459baff;
    transition: all 0.2s;
}

.fp-phone-input::placeholder {
    color: #0459baff;
    opacity: 0.5;
}

.fp-phone-input:focus {
    outline: none;
    border-color: #0459baff;
    box-shadow: 0 0 0 3px rgba(4, 89, 186, 0.2);
    transform: scale(1.05);
}

.fp-phone-input.error {
    border-color: #dc3545;
}

.fp-sms-code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.fp-sms-input {
    width: 56px;
    height: 64px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.2s;
}

.fp-sms-input:focus {
    outline: none;
    border-color: #0459baff;
    box-shadow: 0 0 0 3px rgba(4, 89, 186, 0.1);
}

.fp-timer {
    text-align: center;
    margin: 20px 0;
}

.fp-timer-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
}

.fp-timer-display i {
    font-size: 18px;
}

.fp-resend-button {
    display: block;
    margin: 15px auto 0;
    background: transparent;
    border: none;
    color: #0459baff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s;
}

.fp-resend-button:hover:not(:disabled) {
    color: #033d7a;
}

.fp-resend-button:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

.fp-password-requirements {
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.fp-password-requirements ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #555;
}

.fp-password-requirements li {
    margin: 4px 0;
}

.fp-password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.fp-password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.fp-password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.fp-password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.fp-password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.fp-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fp-btn-primary {
    background: linear-gradient(135deg, #0459baff 0%, #033d7a 100%);
    color: white;
}

.fp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 89, 186, 0.3);
}

.fp-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.fp-btn-secondary {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    margin-top: 10px;
}

.fp-btn-secondary:hover {
    border-color: #0459baff;
    color: #0459baff;
}

.fp-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

.fp-success-icon i {
    font-size: 40px;
    color: white;
}

.fp-success-message {
    text-align: center;
}

.fp-success-message h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.fp-success-message p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.fp-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.fp-loading.show {
    display: block;
}

.fp-loading i {
    font-size: 32px;
    color: #0459baff;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .forgot-password-modal {
        max-width: 95%;
        border-radius: 16px;
    }

    .forgot-password-header,
    .forgot-password-body {
        padding: 20px;
    }

    .fp-header-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .fp-header-text h2 {
        font-size: 18px;
    }

    .fp-header-text p {
        font-size: 12px;
    }

    .fp-sms-input {
        width: 48px;
        height: 56px;
        font-size: 20px;
    }

    .fp-sms-code-inputs {
        gap: 8px;
    }
}

/* Password visibility toggle */
.fp-password-wrapper {
    position: relative;
}

.fp-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.fp-password-toggle:hover {
    color: #333;
}
