:root {
    --ink: #111315;
    --ink-soft: #292d30;
    --yellow: #ffcc00;
    --yellow-dark: #997300;
    --paper: #ffffff;
    --surface: #f1f3f4;
    --line: #d8dde1;
    --muted: #626a72;
    --danger: #a22929;
    --success: #176c41;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--ink);
}

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(153, 115, 0, 0.5);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.account-recovery-shell {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(440px, 1.02fr) minmax(520px, 0.98fr);
    background: var(--paper);
}

.recovery-story {
    position: relative;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(42px, 6vw, 84px);
    background: var(--ink);
    color: var(--paper);
}

.recovery-story::before,
.recovery-story::after {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(255, 204, 0, 0.22);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.recovery-story::before {
    right: -230px;
    bottom: -270px;
    width: 610px;
    height: 610px;
}

.recovery-story::after {
    right: -96px;
    bottom: -140px;
    width: 340px;
    height: 340px;
}

.recovery-brand,
.recovery-story-copy,
.recovery-story-note {
    position: relative;
    z-index: 1;
}

.recovery-brand {
    display: block;
    width: min(310px, 65%);
    padding: 16px 20px;
    border-left: 7px solid var(--yellow);
}

.recovery-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.recovery-story-copy {
    max-width: 700px;
    margin: clamp(70px, 12vh, 150px) 0 auto;
}

.recovery-kicker {
    margin: 0 0 12px;
    color: var(--yellow-dark);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.recovery-story .recovery-kicker {
    color: var(--yellow);
}

.recovery-story h1 {
    max-width: 11ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6vw, 6.5rem);
    font-weight: 920;
    letter-spacing: -0.065em;
    line-height: 0.9;
    text-transform: uppercase;
}

.recovery-story-copy > p:not(.recovery-kicker) {
    max-width: 49ch;
    margin: 26px 0 0;
    color: #c5c9cd;
    font-size: 1.02rem;
}

.recovery-promises {
    display: grid;
    max-width: 690px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 38px 0 0;
    border-top: 1px solid #34383c;
    border-bottom: 1px solid #34383c;
}

.recovery-promises div {
    min-width: 0;
    padding: 18px 15px 18px 0;
}

.recovery-promises div + div {
    padding-left: 15px;
    border-left: 1px solid #34383c;
}

.recovery-promises dt {
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
}

.recovery-promises dd {
    margin: 4px 0 0;
    color: #aeb4b9;
    font-size: 0.7rem;
    line-height: 1.4;
}

.recovery-story-note {
    margin: 50px 0 0;
    color: #8d9499;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.recovery-workspace {
    position: relative;
    display: grid;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: clamp(30px, 6vw, 88px);
    background: var(--paper);
}

.recovery-workspace::after {
    position: absolute;
    right: -110px;
    top: -120px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(153, 115, 0, 0.16);
    border-radius: 50%;
    content: "";
}

.recovery-mobile-brand {
    display: none;
}

.recovery-card {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
}

.recovery-card-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
}

.recovery-card-mark span {
    width: 18px;
    height: 24px;
    border: 4px solid var(--ink);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transform: translateY(4px);
}

.recovery-card h2 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.55rem, 5vw, 4.3rem);
    font-weight: 920;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.recovery-intro,
.recovery-success > p:not(.recovery-kicker) {
    margin: 18px 0 30px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.recovery-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-left: 4px solid #d54343;
    background: #fff1f1;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 650;
}

.recovery-field {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.recovery-field label {
    font-size: 0.86rem;
    font-weight: 800;
}

.recovery-field input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #bec5ca;
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.recovery-field input:focus {
    border-color: var(--yellow-dark);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.2);
}

.recovery-field input::placeholder {
    color: #969da3;
}

.recovery-field small {
    color: var(--muted);
    font-size: 0.73rem;
}

.recovery-password-field {
    position: relative;
}

.recovery-password-field input {
    padding-right: 96px;
}

.recovery-password-field button {
    position: absolute;
    top: 50%;
    right: 14px;
    padding: 3px 0;
    border: 0;
    border-bottom: 2px solid var(--yellow);
    background: transparent;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 850;
    transform: translateY(-50%);
    cursor: pointer;
}

.recovery-primary,
.recovery-secondary {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 7px;
    font-weight: 880;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.recovery-primary {
    border: 1px solid var(--yellow);
    background: var(--yellow);
    color: var(--ink);
}

.recovery-primary:hover {
    border-color: #e6b800;
    background: #e6b800;
}

.recovery-primary:disabled {
    cursor: wait;
    opacity: 0.62;
}

.recovery-secondary {
    border: 1px solid #c6ccd1;
    background: var(--paper);
    color: var(--ink);
}

.recovery-back {
    display: table;
    margin: 25px auto 0;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--yellow);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.recovery-privacy {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #858c92;
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
}

.recovery-success {
    text-align: left;
}

.recovery-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 950;
}

@media (max-width: 980px) {
    .account-recovery-shell {
        grid-template-columns: minmax(0, 1fr);
        background: var(--ink);
    }

    .recovery-story {
        display: none;
    }

    .recovery-workspace {
        display: flex;
        min-height: 100dvh;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
        background: var(--ink);
    }

    .recovery-workspace::after {
        right: -120px;
        top: -100px;
        border-color: rgba(255, 204, 0, 0.18);
    }

    .recovery-mobile-brand {
        position: relative;
        z-index: 1;
        display: block;
        width: min(230px, 62vw);
        margin: 0 auto 22px;
        padding-left: 15px;
        border-left: 5px solid var(--yellow);
    }

    .recovery-mobile-brand img {
        display: block;
        width: 100%;
    }

    .recovery-card {
        padding: clamp(25px, 7vw, 42px);
        border-top: 5px solid var(--yellow);
        border-radius: 10px;
        background: var(--paper);
    }

    .recovery-card-mark {
        width: 46px;
        height: 46px;
        margin-bottom: 22px;
    }

    .recovery-card-mark span {
        width: 16px;
        height: 21px;
        border-width: 3px;
    }
}

@media (max-width: 520px) {
    .recovery-workspace {
        justify-content: flex-start;
        padding: 18px 14px 28px;
    }

    .recovery-mobile-brand {
        width: 190px;
        margin: 4px auto 16px;
    }

    .recovery-card {
        padding: 24px 20px;
    }

    .recovery-card h2 {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .recovery-intro,
    .recovery-success > p:not(.recovery-kicker) {
        margin-bottom: 24px;
        font-size: 0.9rem;
    }

    .recovery-field input,
    .recovery-primary,
    .recovery-secondary {
        min-height: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .recovery-card {
        animation: recovery-enter 420ms cubic-bezier(.2,.75,.25,1) both;
    }

    .recovery-primary,
    .recovery-secondary {
        transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
    }

    .recovery-primary:hover,
    .recovery-secondary:hover {
        transform: translateY(-1px);
    }
}

@keyframes recovery-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
