:root {
    color-scheme: light;
    --bg: #f3f5f7;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #68727d;
    --line: #dfe4e8;
    --dark: #17202a;
    --focus: #596673;
    --danger-bg: #fff4f4;
    --danger-border: #e5bcbc;
    --danger-text: #8a2929;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.shell {
    width: 100%;
    max-width: 440px;
}

.brand {
    margin-bottom: 22px;
    text-align: center;
}

.brand-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--dark);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.brand p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.06);
}

.card h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.intro {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 650;
}

input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #cfd6dc;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}

input:focus {
    border-color: var(--focus);
    box-shadow:
        0 0 0 3px rgba(89, 102, 115, 0.12);
}

button {
    width: 100%;
    height: 47px;
    border: 0;
    border-radius: 9px;
    background: var(--dark);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    opacity: 0.94;
}

.error {
    margin: 0 0 20px;
    padding: 11px 12px;
    border: 1px solid var(--danger-border);
    border-radius: 8px;
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 13px;
    line-height: 1.45;
}

.security {
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.footer {
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 520px) {
    body {
        padding: 18px;
    }

    .card {
        padding: 24px 20px;
    }
}
