:root {
    --recovery-cream: #f8f3e8;
    --recovery-paper: rgba(255, 253, 247, 0.97);
    --recovery-brown: #76533d;
    --recovery-brown-dark: #4e392d;
    --recovery-clay: #b77b5d;
    --recovery-sage: #708b74;
    --recovery-sage-dark: #42634d;
    --recovery-border: #dfd2c0;
    --recovery-muted: #746b62;
    --recovery-error: #9b3f3f;
    --recovery-error-bg: #fff0ed;
    --recovery-shadow: 0 22px 55px rgba(80, 57, 41, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    background: var(--recovery-cream);
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    color: var(--recovery-brown-dark);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--recovery-cream) url("../images/admin/admin-login-bg.png?v=20261015-1") center / cover no-repeat;
    background-image: image-set(
        url("../images/recovery/recovery-background.webp?v=20261015-1") type("image/webp"),
        url("../images/admin/admin-login-bg.png?v=20261015-1") type("image/png")
    );
}

button,
input {
    font: inherit;
}

.recovery-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vh, 28px) 16px;
}

.recovery-card {
    width: min(100%, 540px);
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid rgba(174, 145, 110, 0.38);
    border-radius: 26px;
    background: #3e3028;
    box-shadow: var(--recovery-shadow);
}

.recovery-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #f8f4ec;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.recovery-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
}

.recovery-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    color: #dfd3c9;
    font-size: 0.8rem;
    font-weight: 650;
}

.recovery-steps span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #dfd3c9;
    border-radius: 50%;
    color: var(--recovery-brown-dark);
    background: #fffdf8;
}

.recovery-steps .is-current {
    color: #f8f4ec;
}

.recovery-steps .is-current span {
    border-color: var(--recovery-sage-dark);
    color: #fff;
    background: var(--recovery-sage-dark);
}

.recovery-steps .is-complete span {
    border-color: #b9c9b9;
    color: var(--recovery-sage-dark);
    background: #eaf1e8;
}

.recovery-heading {
    margin-bottom: 18px;
}

.recovery-eyebrow {
    margin: 0 0 7px;
    color: #d8c5b5;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.recovery-heading h1 {
    margin: 0;
    color: #f8f4ec;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 7vw, 2.7rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.recovery-heading p:not(.recovery-eyebrow) {
    margin: 9px 0 0;
    color: #dfd3c9;
    font-size: 0.98rem;
    line-height: 1.55;
}

.recovery-message {
    margin: 0 0 14px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 0.91rem;
    line-height: 1.5;
}

.recovery-message--info {
    border: 1px solid #cbd8c9;
    color: #3e5d47;
    background: #eff5ed;
}

.recovery-message--error {
    border: 1px solid #e6bbb4;
    color: var(--recovery-error);
    background: var(--recovery-error-bg);
}

.recovery-form {
    display: grid;
    gap: 14px;
}

.recovery-field {
    display: grid;
    gap: 8px;
}

.recovery-field label {
    color: #f8f4ec;
    font-size: 0.9rem;
    font-weight: 750;
}

.recovery-field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--recovery-border);
    border-radius: 12px;
    outline: 0;
    color: #382a22;
    background: #fffefa;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.recovery-field input:hover {
    border-color: #bca58b;
}

.recovery-field input:focus-visible {
    border-color: var(--recovery-sage-dark);
    box-shadow: 0 0 0 4px rgba(66, 99, 77, 0.16);
}

.recovery-field input[aria-invalid="true"] {
    border-color: var(--recovery-error);
}

.recovery-field small,
.recovery-note,
.recovery-privacy {
    color: #dfd3c9;
    font-size: 0.82rem;
    line-height: 1.5;
}

.recovery-code {
    text-align: center;
    font-size: 1.45rem !important;
    font-weight: 750;
    letter-spacing: 0.25em;
    font-variant-numeric: tabular-nums;
}

.recovery-primary,
.recovery-secondary,
.recovery-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.recovery-primary {
    width: 100%;
    border: 1px solid var(--recovery-sage-dark);
    color: #fff;
    background: var(--recovery-sage-dark);
    box-shadow: 0 9px 20px rgba(66, 99, 77, 0.2);
}

.recovery-primary:hover {
    background: #355440;
    transform: translateY(-1px);
}

.recovery-secondary {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--recovery-border);
    color: var(--recovery-brown);
    background: #fffdf8;
}

.recovery-cancel-form {
    margin-top: 8px;
    text-align: center;
}

.recovery-link-button {
    min-height: 44px;
    padding: 6px 10px;
    border: 0;
    color: #f2e8de;
    background: transparent;
}

.recovery-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    margin-top: 16px;
}

.recovery-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #f2e8de;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recovery-note {
    margin: 14px 0 0;
    text-align: center;
}

.recovery-privacy {
    margin: 16px 0 0;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 253, 249, 0.16);
    text-align: center;
}

.recovery-brand:focus-visible,
.recovery-primary:focus-visible,
.recovery-secondary:focus-visible,
.recovery-link-button:focus-visible,
.recovery-links a:focus-visible {
    outline: 3px solid rgba(66, 99, 77, 0.42);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .recovery-page {
        align-items: start;
        padding: 12px 10px 20px;
    }

    .recovery-card {
        padding: 21px 18px;
        border-radius: 20px;
    }

    .recovery-steps {
        margin: 13px 0 18px;
        gap: 3px;
    }

    .recovery-steps li {
        gap: 4px;
        font-size: 0.72rem;
    }

    .recovery-steps span {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    .recovery-heading h1 {
        font-size: clamp(1.85rem, 10vw, 2.3rem);
    }

    .recovery-field input {
        font-size: 16px;
    }

    .recovery-links {
        display: grid;
        justify-items: center;
    }
}

@media (min-width: 481px) and (max-height: 680px) {
    .recovery-page {
        align-items: start;
        padding-block: 12px;
    }

    .recovery-card {
        padding-block: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

