/* ===== Forgot Password Modal ===== */
.forgot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.forgot-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 460px;
    width: 90%;
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 0, 0, 0.2);
}

.forgot-header {
    background: linear-gradient(135deg, rgba(240, 116, 0, 0.9), rgba(0, 180, 255, 0.9));
    padding: 30px 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.forgot-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 80% 20%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(255, 255, 255, 0.05), transparent);
}

.forgot-header-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.forgot-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
}

.forgot-header p {
    font-size: 13px;
    opacity: 0.85;
    position: relative;
}

.forgot-body {
    padding: 28px 32px;
}

.forgot-field {
    margin-bottom: 20px;
}

.forgot-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.forgot-input-wrapper {
    position: relative;
}

.forgot-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s;
}

.forgot-input-wrapper:focus-within .forgot-input-icon {
    color: var(--primary-color);
}

.forgot-input-with-icon {
    padding-left: 46px !important;
}

.forgot-error {
    color: var(--error-color);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 61, 113, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(255, 61, 113, 0.15);
}

.forgot-submit-btn {
    width: 100%;
    margin-bottom: 12px;
}

.forgot-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-success {
    text-align: center;
    padding: 20px 0;
}

.forgot-success svg {
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 214, 143, 0.3));
}

.forgot-success p {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.forgot-email-sent {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 16px;
    background: var(--bg-glass);
    border-radius: 8px;
    display: inline-block;
}

.forgot-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.forgot-back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 10px 16px;
    transition: color 0.3s;
}

.forgot-back-btn:hover {
    color: var(--primary-color);
}
