/* Login pages (/login, /admin/login): the card is a meal token — brand stub on top, a dashed
   perforation with punched notches, the form below. Colours match theme.css. */
:root {
    --ink: #17302A; --ink-2: #21423A; --accent: #0E6E58; --accent-dark: #0A5545;
    --saffron: #E3A72F; --muted: #5F706A; --line: #C3CFC9; --danger: #B3402C;
}
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; padding: 24px 16px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font); color: var(--ink);
    background: radial-gradient(120% 80% at 50% 0%, var(--ink-2) 0%, var(--ink) 60%);
}
.ticket { width: 100%; max-width: 360px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.ticket-stub, .ticket-body { background: #fff; }
.ticket-stub {
    padding: 26px 28px 22px; border-radius: 16px 16px 0 0;
    display: flex; align-items: center; gap: 14px;
}
.mark {
    flex: none; width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; background: var(--saffron); color: var(--ink);
}
.mark svg { width: 26px; height: 26px; }
.brand { font-size: 13px; color: var(--muted); font-weight: 700; }
h1 { margin: 2px 0 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
/* Perforation: the notches are cut with radial gradients so the page background shows through. */
.perf {
    height: 24px; margin: -1px 0; position: relative;
    background:
        radial-gradient(circle at 0 50%, transparent 11px, #fff 11.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 50%, transparent 11px, #fff 11.5px) right / 51% 100% no-repeat;
}
.perf::after {
    content: ""; position: absolute; top: 50%; left: 20px; right: 20px;
    border-top: 2px dashed var(--line);
}
.ticket-body { padding: 18px 28px 28px; border-radius: 0 0 16px 16px; }
.hint { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
input {
    width: 100%; padding: 11px 12px; margin-bottom: 16px;
    border: 1px solid var(--line); border-radius: 10px;
    font: inherit; font-size: 15px; color: var(--ink); background: #fff;
    transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 110, 88, .18); }
button {
    width: 100%; margin-top: 4px; padding: 12px; border: 0; border-radius: 10px;
    background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: background-color .15s ease-out;
}
button:hover { background: var(--accent-dark); }
button:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.error {
    margin-bottom: 16px; padding: 9px 12px; border-radius: 8px;
    background: #FBEDEA; color: var(--danger); font-size: 13.5px;
}
.switch { display: block; margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.switch a { color: var(--accent); font-weight: 700; text-decoration: none; }
.switch a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Activation page (/license): wider card, the machine code, the pasted activation code, the outcome. */
.ticket.wide { max-width: 520px; }
.code {
    direction: ltr; text-align: center; margin: 0 0 16px; padding: 10px; border-radius: 10px;
    background: #F1F5F3; font-size: 18px; font-weight: 800; letter-spacing: 1px; user-select: all;
}
textarea {
    width: 100%; min-height: 110px; padding: 10px 12px; margin-bottom: 12px; direction: ltr;
    border: 1px solid var(--line); border-radius: 10px; font: 12px/1.5 Consolas, monospace; color: var(--ink); resize: vertical;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 110, 88, .18); }
.ok { margin-bottom: 16px; padding: 9px 12px; border-radius: 8px; background: #E7F4EF; color: var(--accent-dark); font-size: 13.5px; }
.facts { margin: 0 0 16px; font-size: 13.5px; line-height: 1.9; }
.facts b { color: var(--muted); font-weight: 700; }
