/* ─────────────────────────────────────────────────────────────
   FORGOT PASSWORD PREMIUM GLASSMORPHISM THEME
   ReadWise / Mentors Executive Identity
   ───────────────────────────────────────────────────────────── */

/* Page Wrapper with Animated Mesh Gradient */
.forgot-page-wrap {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 35%, #f8fafc 70%, #ecfeff 100%);
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ambient Floating Luminous Orbs */
.forgot-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

.forgot-ambient-orb--1 {
    width: 480px;
    height: 480px;
    top: 5%;
    left: 8%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.42) 0%, rgba(6, 182, 212, 0.15) 60%, rgba(255, 255, 255, 0) 100%);
    animation: forgotOrbFloat1 18s ease-in-out infinite alternate;
}

.forgot-ambient-orb--2 {
    width: 520px;
    height: 520px;
    bottom: 5%;
    right: 8%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(14, 165, 233, 0.22) 55%, rgba(255, 255, 255, 0) 100%);
    animation: forgotOrbFloat2 22s ease-in-out infinite alternate;
}

@keyframes forgotOrbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

@keyframes forgotOrbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-25px, -20px) scale(1.06); }
}

/* Central Glassmorphism Card */
.forgot-glass-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 470px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.68) 45%,
        rgba(240, 248, 255, 0.85) 100%
    );
    backdrop-filter: blur(26px) saturate(190%);
    -webkit-backdrop-filter: blur(26px) saturate(190%);
    border: 1.5px solid rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    padding: 38px 40px 32px;
    box-sizing: border-box;
    box-shadow:
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.95),
        0 25px 60px -15px rgba(15, 23, 42, 0.12),
        0 10px 24px -10px rgba(14, 165, 233, 0.14);
    overflow: hidden;
}

/* Subtle Specular Arc Highlight */
.forgot-glass-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

/* Centered Top Brand Logo */
.forgot-brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.forgot-brand-logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    /* High-contrast corporate slate navy filter matching admin login */
    filter: brightness(0) saturate(100%) invert(8%) sepia(34%) saturate(2250%) hue-rotate(184deg) brightness(94%) contrast(96%) drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.forgot-brand-header:hover .forgot-brand-logo-img {
    transform: scale(1.02);
}

/* Heading & Subtitle */
.forgot-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    position: relative;
    z-index: 2;
}

.forgot-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 24px;
    font-weight: 450;
    position: relative;
    z-index: 2;
}

/* Alerts container */
.forgot-alerts {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.forgot-alerts .alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.forgot-alerts .alert-danger {
    background: rgba(254, 242, 242, 0.9);
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.forgot-alerts .alert-success {
    background: rgba(240, 253, 244, 0.9);
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* Form Groups & Inputs */
.forgot-form {
    position: relative;
    z-index: 2;
}

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

.forgot-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.forgot-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.forgot-input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
}

.forgot-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.82);
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.forgot-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.forgot-input:focus {
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3.5px rgba(14, 165, 233, 0.16);
}

/* Primary Submit Button with Circular Arrow Badge */
.forgot-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 16px;
    box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.42);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    margin-top: 6px;
}

.forgot-submit-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 14px 30px -4px rgba(2, 132, 199, 0.52);
    filter: brightness(1.04);
}

.forgot-submit-btn:active {
    transform: translateY(0);
}

.forgot-btn-badge {
    position: absolute;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.forgot-submit-btn:hover .forgot-btn-badge {
    transform: translateX(2px);
}

.forgot-btn-text {
    flex: 1;
    text-align: center;
}

/* Divider with 'or' */
.forgot-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 18px;
    position: relative;
    z-index: 2;
}

.forgot-divider::before,
.forgot-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.forgot-divider span {
    padding: 0 12px;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: lowercase;
}

/* Back to Login Link */
.forgot-back-row {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 6px;
}

.forgot-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.18s ease;
}

.forgot-back-link:hover {
    color: #0284c7;
}

/* Bottom Trust Badge */
.forgot-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.forgot-trust-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    color: #94a3b8;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .forgot-page-wrap {
        padding: 20px 14px;
    }

    .forgot-glass-card {
        padding: 30px 22px 24px;
        border-radius: 24px;
    }

    .forgot-title {
        font-size: 1.6rem;
    }

    .forgot-subtitle {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .forgot-input {
        height: 48px;
    }

    .forgot-submit-btn {
        height: 48px;
    }

    .forgot-btn-badge {
        width: 32px;
        height: 32px;
        left: 8px;
    }
}

