/* ==========================================================================
   FORGOT PASSWORD
   Standalone auth page. Minimal, task-focused reset screen.
   ========================================================================== */

:root {
    color-scheme: dark;
}

.forgot-body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 85, 85, 0.13), transparent 28rem),
        radial-gradient(circle at 78% 78%, rgba(168, 50, 50, 0.12), transparent 28rem),
        linear-gradient(135deg, var(--bg-base, #121212), #080808 56%, #000);
}

.forgot-body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
}

.forgot-body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 88%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.forgot-card.ui-card:hover {
    background:
            radial-gradient(circle at 0 0, rgba(229, 57, 53, 0.16), transparent 20rem),
            linear-gradient(180deg, rgba(22, 22, 23, 0.9), rgba(8, 8, 9, 0.96));
    border-color: rgba(255, 255, 255, 0.095);
    box-shadow:
            0 34px 90px rgba(0, 0, 0, 0.48),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: none;
}

.forgot-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.32;
    pointer-events: none;
}

.forgot-shell {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100dvh;
    width: min(520px, calc(100% - 34px));
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: clamp(26px, 6vw, 72px) 0;
}

.forgot-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: clamp(24px, 4vw, 32px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgba(229, 57, 53, 0.16), transparent 20rem),
        linear-gradient(180deg, rgba(22, 22, 23, 0.9), rgba(8, 8, 9, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.095);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: forgotCardIn 620ms var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

.forgot-card__glow {
    position: absolute;
    inset: -34% -20% auto auto;
    width: 270px;
    height: 270px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 85, 85, 0.18), transparent 68%);
    pointer-events: none;
}

.forgot-brand,
.forgot-card__icon,
.forgot-eyebrow,
.forgot-card__header h1,
.forgot-card__header p:last-child,
.forgot-alert,
.forgot-field,
.forgot-submit,
.forgot-footer {
    opacity: 0;
    animation: forgotItemIn 520ms var(--ease-spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

.forgot-brand { animation-delay: 80ms; }
.forgot-card__icon { animation-delay: 160ms; }
.forgot-eyebrow { animation-delay: 220ms; }
.forgot-card__header h1 { animation-delay: 280ms; }
.forgot-card__header p:last-child { animation-delay: 340ms; }
.forgot-alert { animation-delay: 400ms; }
.forgot-field { animation-delay: 460ms; }
.forgot-submit { animation-delay: 520ms; }
.forgot-footer { animation-delay: 580ms; }

.forgot-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 26px;
}

.forgot-brand img {
    width: min(210px, 58vw);
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
}

.forgot-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.forgot-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 16px;
    color: var(--color-accent, #ff5555);
    background: rgba(229, 57, 53, 0.13);
    border: 1px solid rgba(229, 57, 53, 0.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.forgot-eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    color: var(--color-accent, #ff5555);
    font-size: 0.72rem;
    font-weight: var(--weight-black, 900);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.forgot-card__header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.forgot-card__header p:last-child {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    line-height: 1.55;
}

.forgot-alert {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.42;
}

.forgot-alert i {
    margin-top: 2px;
}

.forgot-alert--success {
    color: rgba(219, 255, 226, 0.98);
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.28);
}

.forgot-alert--success i {
    color: var(--status-success, #4CAF50);
}

.forgot-alert--error {
    color: rgba(255, 216, 216, 0.98);
    background: rgba(229, 57, 53, 0.13);
    border: 1px solid rgba(255, 85, 85, 0.32);
}

.forgot-alert--error i {
    color: var(--color-accent, #ff5555);
}

.forgot-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.forgot-field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.forgot-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.38);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.forgot-input-wrap:focus-within {
    border-color: rgba(255, 85, 85, 0.48);
    background: rgba(0, 0, 0, 0.56);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.48),
        0 0 0 3px rgba(255, 85, 85, 0.105);
}

.forgot-input-wrap > i {
    width: 52px;
    flex: 0 0 52px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.forgot-input-wrap input {
    min-width: 0;
    width: 100%;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    padding-left: 4px;
    padding-right: 14px;
}

.forgot-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

.forgot-input-wrap input:-webkit-autofill,
.forgot-input-wrap input:-webkit-autofill:hover,
.forgot-input-wrap input:-webkit-autofill:focus,
.forgot-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border: 0;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.42) inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.forgot-input-wrap:focus-within input:-webkit-autofill,
.forgot-input-wrap:focus-within input:-webkit-autofill:hover,
.forgot-input-wrap:focus-within input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.56) inset !important;
}

.forgot-field-error {
    min-height: 18px;
    margin: 6px 0 0;
    color: var(--color-accent, #ff5555);
    font-size: 0.76rem;
    font-weight: 700;
}

.forgot-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.forgot-submit:disabled {
    opacity: 0.56;
    filter: grayscale(0.35);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    font-weight: 800;
}

.forgot-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forgot-footer a:hover {
    color: var(--color-accent, #ff5555);
}

@keyframes forgotCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes forgotItemIn {
    from {
        opacity: 0;
        transform: translateX(-14px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .forgot-card,
    .forgot-brand,
    .forgot-card__icon,
    .forgot-eyebrow,
    .forgot-card__header h1,
    .forgot-card__header p:last-child,
    .forgot-alert,
    .forgot-field,
    .forgot-submit,
    .forgot-footer {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

@media (max-width: 560px) {
    .forgot-shell {
        width: min(100% - 28px, 520px);
        padding: 18px 0 32px;
        place-items: center;
    }

    .forgot-card {
        padding: 22px;
        border-radius: 20px;
    }

    .forgot-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 22px;
    }

    .forgot-brand img {
        width: min(190px, 62vw);
    }

    .forgot-card__header {
        display: block;
        text-align: center;
    }

    .forgot-card__icon {
        display: none;
    }

    .forgot-footer {
        justify-content: center;
    }
}


/* Centered reset layout for all viewport sizes */
.forgot-shell {
    width: min(500px, calc(100% - 34px));
}

.forgot-card {
    text-align: center;
    padding: clamp(24px, 5vw, 34px);
}

.forgot-brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 24px;
}

.forgot-brand img {
    width: min(196px, 58vw);
    margin: 0 auto;
}

.forgot-card__header {
    display: block;
    text-align: center;
    margin-bottom: 24px;
}

.forgot-card__header h1 {
    font-size: clamp(1.9rem, 5vw, 2.45rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.forgot-card__header p:last-child {
    max-width: 380px;
    margin: 12px auto 0;
}

.forgot-card__icon,
.forgot-eyebrow {
    display: none !important;
}

.forgot-alert {
    justify-content: center;
    text-align: center;
}

.forgot-field label {
    text-align: center;
}

.forgot-field-error {
    text-align: center;
}

.forgot-footer {
    justify-content: center;
    text-align: center;
}

@keyframes forgotItemIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
