:root {
    --ink-950: #102044;
    --ink-800: #203461;
    --ink-650: #465b86;
    --ink-500: #6c7ca0;
    --line: rgba(106, 126, 185, 0.24);
    --blue: #1769e8;
    --blue-deep: #0d49ba;
    --violet: #6545e6;
    --orange: #f58a3c;
    --green: #238b5d;
    --red: #c53c4d;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink-950);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(93, 116, 255, 0.22), transparent 31rem),
        radial-gradient(circle at 91% 8%, rgba(245, 160, 87, 0.2), transparent 25rem),
        linear-gradient(180deg, #f4f1ff 0%, #edf4ff 52%, #f7f8ff 100%);
}

button, input { font: inherit; }

.reset-page {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
}

.reset-header,
.reset-footer {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.reset-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink-950);
    font-size: 1.18rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 8px 18px rgba(20, 44, 99, 0.2);
}

.brand-mark--emblem {
    border-radius: 30%;
    object-fit: cover;
    background: transparent;
}

.lang-switch { display: flex; gap: 7px; }

.lang-switch a {
    display: inline-flex;
    min-width: 42px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ink-650);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--ink-950);
    border-color: var(--line);
    background: #fff;
}

.lang-switch img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.reset-main {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 34px 20px 64px;
}

.reset-card {
    width: min(100%, 520px);
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid rgba(106, 126, 185, 0.2);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 65px rgba(37, 53, 116, 0.16);
    backdrop-filter: blur(18px);
}

.reset-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 14px 28px rgba(31, 90, 211, 0.24);
}

.reset-icon svg { width: 27px; height: 27px; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.14;
    letter-spacing: -0.045em;
}

.intro {
    margin: 14px 0 28px;
    color: var(--ink-650);
    line-height: 1.65;
}

.flash {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #d8e3fb;
    border-radius: 12px;
    color: var(--ink-800);
    background: #f1f6ff;
    font-size: 0.9rem;
    line-height: 1.45;
}

.flash.error { color: #8f2635; border-color: #f2c8ce; background: #fff2f4; }
.flash.success { color: #17613f; border-color: #bce2d0; background: #edfbf4; }

.form-group { margin-bottom: 18px; }

label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-800);
    font-size: 0.9rem;
    font-weight: 760;
}

input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(80, 105, 164, 0.3);
    border-radius: 12px;
    color: var(--ink-950);
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23, 105, 232, 0.12);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #247ee9 55%, var(--violet));
    box-shadow: 0 12px 24px rgba(24, 93, 212, 0.24);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-secondary {
    margin-top: 11px;
    color: var(--ink-800);
    border: 1px solid rgba(61, 87, 150, 0.24);
    background: rgba(255, 255, 255, 0.75);
}

.privacy-note,
.requirements {
    margin: 17px 0 0;
    color: var(--ink-500);
    font-size: 0.8rem;
    line-height: 1.55;
}

.strength-track {
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ebf5;
}

.strength-value {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--red);
    transition: width 180ms ease, background 180ms ease;
}

.strength-value.medium { width: 58%; background: var(--orange); }
.strength-value.strong { width: 100%; background: var(--green); }
.strength-value.weak { width: 25%; }

.strength-label {
    display: block;
    margin-top: 7px;
    color: var(--ink-500);
    font-size: 0.78rem;
}

.reset-footer {
    padding: 22px 0 28px;
    color: var(--ink-500);
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 560px) {
    .reset-header { width: calc(100% - 28px); }
    .brand { font-size: 1rem; }
    .brand-mark { width: 38px; height: 38px; }
    .lang-switch a { min-width: 36px; padding: 0 6px; }
    .lang-switch span { display: none; }
    .reset-main { padding-inline: 12px; }
    .reset-card { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
