:root {
    --fp-ink: #0e2437;
    --fp-muted: #5f717d;
    --fp-line: #d8e3dd;
    --fp-lime: #cfe768;
}

.forgot-page {
    margin: 0;
    background: radial-gradient(circle at 20% 10%, #f8ffe7 0%, #eef3f7 50%, #f4f6f3 100%);
    color: var(--fp-ink);
    font-family: 'DM Sans', sans-serif;
}

.forgot-page h1,
.forgot-page h2,
.forgot-page h3,
.forgot-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.forgot-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
}

.forgot-visual {
    background: linear-gradient(150deg, #0f293d 0%, #1b3d53 57%, #285f74 100%);
    color: #fff;
    padding: 34px 44px;
    display: grid;
    align-content: space-between;
}

.forgot-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.forgot-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transform: rotate(-10deg);
    background: var(--fp-lime);
    color: #0f293d;
}

.forgot-brand span span {
    color: var(--fp-lime);
}

.forgot-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.forgot-copy h1 {
    margin: 18px 0 10px;
    font-size: clamp(2.1rem, 4.2vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.forgot-copy h1 em {
    font-style: normal;
    color: var(--fp-lime);
}

.forgot-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 430px;
}

.forgot-copy ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.forgot-copy li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
}

.forgot-copy li i {
    color: var(--fp-lime);
}

.forgot-panel {
    padding: 28px clamp(20px, 4vw, 56px);
}

.forgot-top a {
    color: #5f717d;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
}

.forgot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.signup-language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5f717d;
    font-size: 0.75rem;
    font-weight: 700;
}

.signup-language select {
    border: 1px solid #d8e3dd;
    border-radius: 999px;
    background: #fff;
    color: #17354b;
    padding: 6px 10px;
    font: inherit;
}

.forgot-top i {
    margin-right: 6px;
}

.forgot-card {
    margin-top: 12px;
    border: 1px solid var(--fp-line);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 44px rgba(9, 24, 37, 0.08);
    padding: 18px;
}

.wizard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wizard-head h2 {
    margin: 0;
    font-size: 1.08rem;
}

.wizard-head span {
    font-size: 0.73rem;
    color: var(--fp-muted);
    font-weight: 700;
}

.wizard-track {
    margin: 12px 0 10px;
    height: 8px;
    border-radius: 999px;
    background: #e8eee8;
    overflow: hidden;
}

.wizard-fill {
    width: 33.33%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8eaf42 0%, #1b3d53 100%);
    transition: width 0.22s ease;
}

.wizard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    border-radius: 999px;
    border: 1px solid #d8e3dd;
    background: #fff;
    color: #60727e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 10px;
}

.chip.is-active {
    color: #17354b;
    background: #f4faea;
    border-color: #bfd49c;
}

.forgot-alert {
    margin-top: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    display: none;
    font-size: 0.77rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.forgot-alert.is-visible {
    display: block;
}

.forgot-alert.success {
    color: #1f6136;
    background: #ecf8ef;
    border-color: #bfe3c9;
}

.forgot-alert.error {
    color: #8d3029;
    background: #fff1ee;
    border-color: #efc9c2;
}

.forgot-form {
    margin-top: 12px;
    display: grid;
    gap: 13px;
}

.wizard-step {
    display: none;
}

.wizard-step.is-active {
    display: grid;
    gap: 10px;
}

.wizard-step h3 {
    margin: 0;
    font-size: 1.12rem;
}

.wizard-step p {
    margin: 0;
    color: #60717b;
    font-size: 0.79rem;
}

.wizard-step label {
    display: grid;
    gap: 7px;
}

.wizard-step label > span {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #495a67;
    font-weight: 700;
}

.wizard-step input {
    width: 100%;
    border: 1px solid #d8e3dd;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.83rem;
    color: var(--fp-ink);
}

.wizard-step small {
    color: #935147;
    font-size: 0.72rem;
    min-height: 16px;
}

.wizard-actions-inline {
    display: flex;
    gap: 8px;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.wizard-nav .button,
.wizard-actions-inline .button,
.wizard-step > .button {
    justify-content: center;
}

.forgot-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    background: rgba(7, 20, 32, 0.64);
    display: grid;
    place-items: center;
    padding: 16px;
}

.forgot-success-card {
    width: min(430px, 100%);
    border-radius: 16px;
    border: 1px solid #dce6e1;
    background: #fff;
    box-shadow: 0 24px 56px rgba(8, 25, 40, 0.2);
    padding: 24px 20px;
    text-align: center;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.forgot-success-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #2d7f45;
    background: #eaf8ee;
    border: 1px solid #c8e5d0;
    font-size: 1.35rem;
}

.forgot-success-card h3 {
    margin: 0;
    font-size: 1.14rem;
}

.forgot-success-card p {
    margin: 0;
    color: #60717c;
    font-size: 0.82rem;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .forgot-shell {
        grid-template-columns: 1fr;
    }

    .forgot-visual {
        min-height: 320px;
        padding: 24px;
    }

    .forgot-panel {
        margin-top: -34px;
        padding: 0 16px 22px;
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 720px) {
    .forgot-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .wizard-nav,
    .wizard-actions-inline {
        flex-direction: column;
    }

    .wizard-nav .button,
    .wizard-actions-inline .button,
    .wizard-step > .button {
        width: 100%;
    }
}
