:root {
    --paper: #f4f7f8;
    --panel: #ffffff;
    --ink: #002b5c;
    --text: #202d3b;
    --text-on-dark: #e9e1ca;
    --text-accent: #3d765e;
    --muted: #6f746f;
    --line: #c9d7e1;
    --accent: #4a7d00;
    --error: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font: inherit;
}

.recovery-page {
    display: grid;
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
}

.recovery-introduction {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 64px 112px 64px 0;
}

.recovery-logo {
    display: block;
    width: min(100%, 440px);
    height: auto;
}

.recovery-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 44px 0 44px 44px;
    border-left: 1px solid var(--line);
}

.recovery-card {
    width: 100%;
    padding: 42px;
    background: var(--ink);
    color: var(--text-on-dark);
    box-shadow: 0 14px 36px rgb(0 43 92 / 14%);
}

.eyebrow,
.recovery-field > span {
    color: #d1c8ad;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.recovery-card-header h1 {
    margin: 10px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.05rem;
    letter-spacing: -0.035em;
}

.recovery-card-header p {
    margin: 0;
    color: #b8bab1;
    font-size: 0.78rem;
    line-height: 1.5;
}

#recovery-request-form,
#password-update-form {
    margin-top: 31px;
}

.recovery-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.recovery-field:first-child {
    margin-top: 0;
}

.recovery-field input {
    width: 100%;
    height: 49px;
    padding: 0 13px;
    border: 1px solid #6b8195;
    border-radius: 0;
    outline: 0;
    background: #073b72;
    color: #f2ead4;
    font-family: "Courier New", Courier, monospace;
}

.recovery-field input:focus {
    border-color: #8bd600;
    box-shadow: 0 0 0 3px rgb(139 214 0 / 14%);
}

.password-hint {
    margin: 9px 0 0;
    color: #b8bab1;
    font-size: 0.68rem;
}

.recovery-message {
    min-height: 20px;
    margin: 17px 0 8px;
    color: #ee9b8f;
    font-size: 0.74rem;
    line-height: 1.4;
}

.recovery-message.is-success {
    color: #91c7ae;
}

.recovery-button {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 1px solid var(--paper);
    background: var(--paper);
    color: var(--text);
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recovery-button:hover,
.recovery-button:focus-visible {
    background: transparent;
    color: var(--text-on-dark);
}

.recovery-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.back-to-login {
    display: inline-block;
    margin-top: 26px;
    color: #d1c8ad;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.back-to-login:hover,
.back-to-login:focus-visible {
    color: #fff;
}

@media (max-width: 850px) {
    .recovery-page {
        width: min(100% - 28px, 620px);
        grid-template-columns: 1fr;
        padding: 38px 0;
    }

    .recovery-introduction,
    .recovery-panel {
        min-height: auto;
    }

    .recovery-introduction {
        padding: 20px 8px 42px;
    }

    .recovery-logo {
        width: min(100%, 360px);
    }

    .recovery-panel {
        padding: 34px 0 0;
        border-top: 2px solid var(--ink);
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .recovery-card {
        padding: 34px 24px 29px;
    }

    .recovery-logo {
        width: min(100%, 290px);
    }
}
