:root {
    --ink: #0a0a0a;
    --paper: #ffffff;
    --muted: #6d6d6d;
    --line: #e6e6e6;
    --sky: #0b0b0d;
    --ok: #1a1a1a;
    --err: #8a1f1f;
    --err-bg: #f7ecec;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(ellipse 80% 50% at 50% 18%, rgba(255, 255, 255, 0.14), transparent 52%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(255, 255, 255, 0.08), transparent 46%),
        radial-gradient(ellipse 50% 45% at 20% 70%, rgba(80, 80, 80, 0.35), transparent 50%),
        linear-gradient(180deg, #111214 0%, #080809 55%, #050505 100%);
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: #000;
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.logo strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.logo em {
    display: block;
    font-style: normal;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #bdbdbd;
}

.topbar-host {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #bdbdbd;
}

.page {
    min-height: calc(100vh - 128px);
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 72px 16px 80px;
}

.eyebrow {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.card {
    width: min(440px, 100%);
    background: var(--paper);
    border-radius: 18px;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.lede {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.field {
    margin-bottom: 16px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fafafa;
    color: var(--ink);
    font: inherit;
}

input:focus {
    outline: 2px solid #111;
    outline-offset: 1px;
    border-color: #111;
    background: #fff;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

button,
.button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary {
    background: #111;
    color: #fff;
    width: 100%;
}

.primary:hover,
.primary:focus {
    background: #000;
}

.ghost {
    background: transparent;
    color: #111;
    border: 1px solid #d8d8d8;
}

.banner {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    line-height: 1.45;
    font-size: 0.92rem;
}

.banner.ok {
    background: #f3f3f3;
    color: var(--ok);
}

.banner.err {
    background: var(--err-bg);
    color: var(--err);
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.meta strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.meta span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.hint {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.footer a {
    color: #111;
    text-decoration: none;
    font-size: 0.88rem;
    border-bottom: 1px solid #111;
}

.footer a:hover,
.footer a:focus {
    opacity: 0.65;
}

.site-foot {
    padding: 22px 28px 28px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 560px) {
    .topbar {
        padding: 16px 18px;
    }

    .card {
        padding: 28px 20px 22px;
    }

    h2 {
        font-size: 1.7rem;
    }
}
