:root { --ink: #172536; --muted: #66788a; --blue: #2258bb; --line: #d8e2ed; }
* { box-sizing: border-box; }
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px 18px 24px;
    background: #f3f7fc;
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
}
.login-card {
    width: min(100%, 420px);
    padding: clamp(26px, 5vw, 38px);
    border: 1px solid #e2e9f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(24, 48, 78, .09);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 800; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
h1 { margin: 32px 0 6px; font-size: 29px; letter-spacing: -.035em; }
.intro { margin: 0 0 27px; color: var(--muted); line-height: 1.5; }
.input-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; color: #34475c; font-size: 14px; font-weight: 700; }
input { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
input:focus { border-color: var(--blue); outline: 3px solid #dce9ff; }
.login-button { width: 100%; min-height: 46px; margin-top: 6px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.login-button:hover { background: #174897; }
.login-button:focus-visible, a:focus-visible { outline: 3px solid #8bb6ff; outline-offset: 3px; }
.back-link { display: block; margin-top: 25px; color: var(--blue); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.login-error { margin-bottom: 20px; padding: 12px 14px; border: 1px solid #efb7bd; border-radius: 8px; background: #fff0f1; color: #9b2833; font-size: 14px; line-height: 1.45; }
footer { margin-top: 22px; color: #8191a3; font-size: 12px; text-align: center; }
@media (max-width: 480px) {
    body { justify-content: flex-start; padding-top: 28px; }
    .login-card { padding: 25px; }
    h1 { margin-top: 24px; }
}
