/* Forgot password dedicated style layer using Friding palette */
.auth-forgot-page {
    --frd-primary: #15AFA7;
    --frd-primary-dark: #0B7C77;
    --frd-electric: #4de2bf;
    --frd-mint: #8af5d4;
    --frd-jade: #1fc8a8;
    --frd-text: #eafaf5;
    --frd-subtle: #b7d2c8;
    font-family: "Manrope", "Segoe UI", "Trebuchet MS", sans-serif;
    background: radial-gradient(1000px 620px at 95% -10%, rgba(77, 226, 191, 0.17), transparent 58%),
        radial-gradient(850px 500px at -10% 110%, rgba(11, 124, 119, 0.26), transparent 64%),
        linear-gradient(132deg, #06120f 0%, #091e1a 52%, #0b2b25 100%);
    color: var(--frd-text);
    min-height: 100vh;
}

.auth-forgot-page .forgot-shell {
    min-height: 100vh;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 480px) minmax(320px, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    box-sizing: border-box;
}

.auth-forgot-page .forgot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(138, 245, 212, 0.25);
    border-radius: 22px;
    padding: 1.3rem 1.2rem 1.35rem;
    background: linear-gradient(155deg, rgba(8, 27, 23, 0.9), rgba(9, 36, 31, 0.8));
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 42px rgba(2, 9, 8, 0.5), 0 0 0 1px rgba(138, 245, 212, 0.06) inset;
}

.auth-forgot-page .forgot-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(138, 245, 212, 0.08), transparent 40%, rgba(77, 226, 191, 0.12));
    pointer-events: none;
}

.auth-forgot-page .forgot-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    padding: 0.46rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(138, 245, 212, 0.36);
    background: linear-gradient(145deg, rgba(9, 37, 31, 0.95), rgba(12, 49, 41, 0.86));
    color: #d9fff2;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    transition: all 0.24s ease;
}

.auth-forgot-page .forgot-back-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 245, 212, 0.52);
    box-shadow: 0 12px 24px rgba(5, 26, 22, 0.48);
}

.auth-forgot-page .forgot-back-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(77, 226, 191, 0.22);
    color: var(--frd-mint);
    font-size: 0.9rem;
}

.auth-forgot-page .forgot-logo {
    width: clamp(145px, 20vw, 172px);
    margin: 0.2rem auto 0.55rem;
    filter: drop-shadow(0 8px 16px rgba(6, 23, 20, 0.62));
}

.auth-forgot-page .forgot-title {
    margin: 0;
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #f3fffb;
}

.auth-forgot-page .forgot-subtitle {
    margin: 0.45rem auto 1rem;
    max-width: 34ch;
    text-align: center;
    color: var(--frd-subtle);
    line-height: 1.5;
    font-size: 0.93rem;
}

.auth-forgot-page .forgot-alert {
    margin: 0 0 0.8rem;
    border-radius: 10px;
    padding: 0.52rem 0.75rem;
    text-align: center;
    font-weight: 700;
}

.auth-forgot-page .forgot-alert-success {
    background: rgba(13, 61, 45, 0.36);
    border: 1px solid rgba(132, 241, 201, 0.34);
    color: #d9fff1;
}

.auth-forgot-page .forgot-alert-success span {
    display: inline-block;
    margin-top: 0.2rem;
    font-weight: 500;
    font-size: 0.88rem;
}

.auth-forgot-page .forgot-alert-error {
    background: rgba(96, 15, 21, 0.38);
    border: 1px solid rgba(255, 123, 130, 0.36);
    color: #ffd6d9;
}

.auth-forgot-page .forgot-form {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.74rem;
}

.auth-forgot-page .forgot-label {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--frd-mint);
    font-weight: 700;
}

.auth-forgot-page .forgot-input {
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(138, 245, 212, 0.2);
    background: linear-gradient(180deg, rgba(7, 26, 21, 0.94), rgba(6, 20, 18, 0.84));
    color: #e8fff7;
    padding: 0 0.95rem;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.auth-forgot-page .forgot-input::placeholder {
    color: rgba(224, 245, 238, 0.62);
}

.auth-forgot-page .forgot-input:focus {
    outline: none;
    border-color: rgba(77, 226, 191, 0.62);
    box-shadow: 0 0 0 4px rgba(77, 226, 191, 0.13), 0 10px 22px rgba(6, 24, 20, 0.46);
}

.auth-forgot-page .forgot-button {
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(138, 245, 212, 0.35);
    color: #03221d;
    background: linear-gradient(135deg, var(--frd-electric) 0%, var(--frd-jade) 100%);
    box-shadow: 0 12px 28px rgba(13, 90, 77, 0.44);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.auth-forgot-page .forgot-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.auth-forgot-page .forgot-button:active {
    transform: translateY(0) scale(0.98);
}

.auth-forgot-page .forgot-help {
    margin: 0.9rem auto 0;
    text-align: center;
    color: rgba(234, 255, 247, 0.86);
    font-size: 0.9rem;
}

.auth-forgot-page .forgot-help a {
    color: var(--frd-mint);
    text-decoration: none;
    font-weight: 700;
}

.auth-forgot-page .forgot-help a:hover {
    color: #d9fff2;
    text-decoration: underline;
}

.auth-forgot-page .forgot-visual {
    position: relative;
    border-radius: 26px;
    border: 1px solid rgba(138, 245, 212, 0.16);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(138, 245, 212, 0.06), 0 18px 44px rgba(4, 12, 11, 0.45);
    min-height: 460px;
}

.auth-forgot-page .forgot-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.12) contrast(1.02) brightness(0.84);
}

.auth-forgot-page .forgot-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(3, 14, 12, 0.68), rgba(3, 14, 12, 0.2) 42%, rgba(3, 14, 12, 0.78));
}

.auth-forgot-page .forgot-visual-copy {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    margin: 0;
    color: #ebfff8;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 6px 18px rgba(2, 7, 6, 0.45);
}

@media (max-width: 980px) {
    .auth-forgot-page .forgot-shell {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        align-items: center;
    }

    .auth-forgot-page .forgot-card {
        width: min(460px, 100%);
        margin: 0 auto;
    }

    .auth-forgot-page .forgot-visual {
        width: min(460px, 100%);
        margin: 0 auto;
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .auth-forgot-page {
        overflow-y: auto;
    }

    .auth-forgot-page .forgot-shell {
        min-height: 100vh;
        padding: 0.78rem 0.65rem 0.95rem;
        gap: 0.75rem;
    }

    .auth-forgot-page .forgot-card {
        border-radius: 16px;
        padding: 1rem 0.88rem 1.08rem;
    }

    .auth-forgot-page .forgot-back-btn {
        width: min(240px, 100%);
        margin: 0 auto 0.5rem;
        justify-content: center;
        min-height: 44px;
        font-size: 0.9rem;
        border-color: rgba(138, 245, 212, 0.5);
    }

    .auth-forgot-page .forgot-logo {
        width: 150px;
    }

    .auth-forgot-page .forgot-title {
        font-size: 1.36rem;
    }

    .auth-forgot-page .forgot-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.82rem;
    }

    .auth-forgot-page .forgot-form,
    .auth-forgot-page .forgot-input,
    .auth-forgot-page .forgot-button {
        max-width: 100%;
        width: 100%;
    }

    .auth-forgot-page .forgot-input,
    .auth-forgot-page .forgot-button {
        min-height: 46px;
        height: 46px;
    }

    .auth-forgot-page .forgot-visual {
        border-radius: 16px;
        min-height: 190px;
    }

    .auth-forgot-page .forgot-visual-copy {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.85rem;
        font-size: 0.9rem;
    }
}
