:root {
    color-scheme: dark;
    --bg: #030812;
    --panel: #081526;
    --line: #1c3450;
    --text: #f7fbff;
    --muted: #9db0c8;
    --blue: #1478ff;
    --blue-soft: #55a8ff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 70% 10%, rgba(20, 120, 255, .16), transparent 36rem),
        linear-gradient(145deg, #02060d, var(--bg));
}

a { color: inherit; }

.recovery-header {
    border-bottom: 1px solid rgba(157, 176, 200, .18);
    background: rgba(3, 8, 18, .88);
    backdrop-filter: blur(18px);
}

.recovery-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.recovery-nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.recovery-brand img { width: 190px; height: auto; display: block; }
.recovery-back { color: var(--muted); text-decoration: none; font-weight: 700; }
.recovery-back:hover { color: var(--blue-soft); }

.recovery-main {
    min-height: calc(100vh - 83px);
    display: grid;
    place-items: center;
    padding: 56px 0;
}

.recovery-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 520px);
    align-items: center;
    gap: clamp(48px, 8vw, 112px);
}

.recovery-copy small {
    color: var(--blue-soft);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.recovery-copy h1 {
    margin: 18px 0;
    max-width: 650px;
    font-size: clamp(2.65rem, 5vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.recovery-copy h1 strong { color: var(--blue-soft); }
.recovery-copy p { max-width: 620px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

.recovery-card {
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(155deg, rgba(11, 30, 52, .96), rgba(5, 13, 25, .96));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}

.recovery-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid #2d6fb6;
    border-radius: 18px;
    color: var(--blue-soft);
    background: rgba(20, 120, 255, .12);
    font-size: 1.35rem;
    font-weight: 900;
}

.recovery-card h2 { margin: 24px 0 8px; font-size: 2rem; letter-spacing: -.035em; }
.recovery-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }

.recovery-message {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #315474;
    border-radius: 14px;
    color: #d9ecff;
    background: rgba(26, 92, 155, .18);
    line-height: 1.45;
}

.recovery-message.error { border-color: #713d4a; color: #ffdbe4; background: rgba(129, 37, 59, .18); }

.recovery-form { display: grid; gap: 18px; }
.recovery-form label { display: grid; gap: 8px; color: #c9d7e7; font-weight: 800; font-size: .88rem; }
.recovery-form input {
    width: 100%;
    min-height: 54px;
    border: 1px solid #263d57;
    border-radius: 14px;
    padding: 0 16px;
    color: var(--text);
    background: #050d18;
    font: inherit;
    outline: none;
}
.recovery-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 120, 255, .15); }
.recovery-form small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.recovery-form button {
    min-height: 55px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(110deg, #0868e8, #238cff);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(14, 118, 246, .22);
}
.recovery-form button:hover { filter: brightness(1.08); }
.recovery-help { margin-top: 22px; color: var(--muted); font-size: .9rem; text-align: center; }
.recovery-help a { color: var(--blue-soft); font-weight: 800; }

@media (max-width: 820px) {
    .recovery-layout { grid-template-columns: 1fr; }
    .recovery-copy { text-align: center; }
    .recovery-copy p { margin-inline: auto; }
}

@media (max-width: 520px) {
    .recovery-shell { width: min(100% - 24px, 1120px); }
    .recovery-brand img { width: 150px; }
    .recovery-nav { min-height: 70px; }
    .recovery-main { min-height: calc(100vh - 71px); padding: 32px 0; }
    .recovery-copy h1 { font-size: 2.6rem; }
    .recovery-card { border-radius: 22px; }
}

