* { box-sizing: border-box; }

html { color-scheme: only light; }

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--canvas, #fbfaf9);
    color: var(--foreground, #282828);
    font: 16px/1.5 var(--font-sans, system-ui, sans-serif);
}

.masthead {
    max-width: 1184px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border, #ddd);
}

.brand { font-size: 22px; font-weight: 600; letter-spacing: -.8px; }

.brand-mark {
    display: inline-block;
    width: 8px;
    height: 20px;
    margin-right: 12px;
    vertical-align: -2px;
    background: var(--accent-brand, #00ed64);
}

p { margin: 0; }
.audience { color: var(--muted-foreground, #555); font-size: 14px; }
main { padding: clamp(48px, 12vh, 128px) 24px 48px; }
.login-panel { width: 100%; max-width: 400px; margin: 0 auto; }
.eyebrow { color: var(--muted-foreground, #555); font-size: 14px; margin-bottom: 12px; }
h1 { font-size: 32px; font-weight: 400; line-height: 1.2; letter-spacing: -.7px; margin: 0 0 12px; }
.intro { color: var(--muted-foreground, #555); }
form { margin-top: 32px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }

input, button { font: inherit; color: inherit; }

input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong, #ccc);
    border-radius: 8px;
    background: var(--field, #fffefd);
}

input:focus-visible {
    outline: 2px solid var(--info, #44778c);
    outline-offset: 3px;
}

input[aria-invalid="true"] { border-color: var(--destructive, #b23827); }

button {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

button:hover { background: var(--secondary, #e9e8e3); }
button:focus-visible { outline: 2px solid var(--ring, #077952); outline-offset: 3px; }
button:disabled { opacity: .65; cursor: wait; }
input:disabled { opacity: .8; }

.primary {
    width: 100%;
    margin-top: 24px;
    background: var(--primary, #077952);
    border-color: var(--primary, #077952);
    color: var(--primary-foreground, #f7f7f0);
    font-weight: 600;
}

.primary:hover { background: color-mix(in srgb, var(--primary, #077952) 90%, #000); }
.delivery-note { color: var(--muted-foreground, #555); font-size: 14px; }
.email-address { font-weight: 500; margin: 6px 0 24px; overflow-wrap: anywhere; }
#code { font-family: var(--font-mono-data, monospace); font-size: 20px; letter-spacing: .25em; }
.field-hint { color: var(--muted-foreground, #555); font-size: 13px; margin-top: 8px; }
.secondary-actions { display: flex; justify-content: space-between; gap: 12px; margin: 12px -12px 0; }
.feedback { color: var(--muted-foreground, #555); font-size: 14px; margin-top: 20px; }
.feedback:empty { display: none; }
.error { color: var(--badge-error-fg, #852e23); }
[hidden] { display: none !important; }

@media (max-width: 1280px) {
    .masthead { margin: 0 48px; }
}

@media (max-width: 600px) {
    .masthead { margin: 0 24px; padding: 20px 0; }
    .audience { font-size: 12px; max-width: 130px; text-align: right; }
    main { padding-top: 48px; }
    h1 { font-size: 30px; }
}
