:root {
    color-scheme: light;
    font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #212529;
    background: #f8f9fa;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --froxlor-50: #e1f4fa;
    --froxlor-100: #b3e3f1;
    --froxlor-250: #62c8f4;
    --froxlor-500: #29a2d6;
    --froxlor-800: #1872a2;
    --dark-blue: #112934;
    --page-bg: #f8f9fa;
    --surface: #ffffff;
    --surface-muted: #f8f9fa;
    --text: #212529;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --input-border: #dee2e6;
    --danger: #be123c;
    --shadow: 0 18px 46px rgba(17, 41, 52, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page-bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--page-bg);
}

body::before {
    display: block;
    height: 5px;
    background: var(--dark-blue);
    content: "";
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.site-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(100%, 1180px);
    min-height: calc(100vh - 5px);
    margin: 0 auto;
    padding: 0 28px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--dark-blue);
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.brand-copy small,
.service-label,
.site-footer {
    color: var(--text-muted);
    font-size: 12px;
}

.service-label {
    font-weight: 700;
}

.site-main {
    display: grid;
    place-items: center;
    padding: 52px 0 70px;
}

.link-card {
    display: grid;
    justify-items: center;
    width: min(100%, 560px);
    padding: 42px 42px 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.state-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 23px;
    border-radius: 10px;
}

.state-icon--lock {
    background: var(--froxlor-50);
    color: var(--froxlor-800);
}

.state-icon--warning {
    background: #fff4d6;
    color: #806000;
}

.state-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--dark-blue);
    font-size: clamp(25px, 5vw, 32px);
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.lead {
    max-width: 420px;
    margin: 13px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.password-form {
    display: grid;
    width: 100%;
    gap: 8px;
    margin-top: 27px;
    text-align: left;
}

.password-form label {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.input-row input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    outline: none;
}

.input-row input:focus {
    border-color: var(--froxlor-500);
    box-shadow: 0 0 0 3px rgba(41, 162, 214, 0.16);
}

.input-row button {
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    background: var(--froxlor-800);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.input-row button:hover {
    background: #0e5380;
}

.input-row button:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(41, 162, 214, 0.34);
    outline-offset: 3px;
}

.form-hint,
.status-note {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.form-feedback {
    width: 100%;
    margin: 22px 0 -8px;
    padding: 10px 12px;
    border: 1px solid rgba(190, 18, 60, 0.2);
    border-radius: 7px;
    background: rgba(190, 18, 60, 0.07);
    color: var(--danger);
    font-size: 13px;
    text-align: left;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 24px;
    border-top: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --page-bg: #0b1720;
        --surface: #112934;
        --surface-muted: #183747;
        --text: #e9ecef;
        --text-muted: #b3c4cc;
        --border: rgba(225, 244, 250, 0.14);
        --input-border: rgba(225, 244, 250, 0.22);
        --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    }

    .brand,
    h1 {
        color: #ffffff;
    }

    .state-icon--warning {
        background: rgba(230, 173, 6, 0.14);
        color: #f5c542;
    }
}

@media (max-width: 620px) {
    .site-shell {
        padding: 0 16px;
    }

    .site-header {
        min-height: 64px;
    }

    .site-main {
        padding: 32px 0 46px;
    }

    .link-card {
        padding: 32px 20px 29px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .input-row button {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
        gap: 5px;
    }
}
