/* «Claro» tokens (same as apps/web/src/app/globals.css), login subset. Fonts are self-hosted with the theme. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 500; font-display: swap; src: url(../fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Material Symbols Outlined"; font-weight: 100 700; font-display: block; src: url(../fonts/material-symbols-outlined-wght.woff2) format("woff2"); }

:root {
  --bg: #f2f4f1; --sf: #ffffff; --sf2: #f6f8f5; --sf3: #e8ece6; --bd: #e1e6de; --bd2: #c9d0c6;
  --tx: #1a1d1a; --tx2: #454b46; --tx3: #5d635e; --ac: #1d4f91; --acbg: #dfe7f2; --ac-hover: #183f74;
  --crit: #a3261f; --critbg: #fbe9e7; --ok: #2f6b45; --okbg: #e4f0e7; --highbg: #fbeedd; --high: #8a4c00; --focus: #1d4f91;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111311; --sf: #191c19; --sf2: #1f231f; --sf3: #292e29; --bd: #2b302b; --bd2: #3e453e;
    --tx: #e8ebe6; --tx2: #b8beb7; --tx3: #99a098; --ac: #9dbbe8; --acbg: #1b2a3e; --ac-hover: #b9cff0;
    --crit: #f19a90; --critbg: #3a1d1a; --ok: #8fcaa2; --okbg: #17291d; --highbg: #35260f; --high: #e8a95c; --focus: #9dbbe8;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); }
body { font: 15px/1.5 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--ac); text-underline-offset: 2px; }
a:hover { color: var(--tx); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.ico { font-family: "Material Symbols Outlined"; font-weight: 300; font-size: 18px; line-height: 1; font-style: normal; display: inline-block; vertical-align: middle; font-feature-settings: "liga"; width: 1em; overflow: hidden; }

.shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.mark { width: 20px; height: 20px; border-radius: 4px; background: var(--ac); }
.seg { display: flex; border: 1px solid var(--bd2); border-radius: 6px; overflow: hidden; font-size: 13px; }
.seg a { padding: 4px 10px; font-weight: 600; color: var(--tx2); text-decoration: none; }
.seg a[aria-current="true"] { background: var(--sf3); color: var(--tx); }
.center { display: grid; place-items: center; padding: 24px 16px; }
.card { width: 100%; max-width: 380px; background: var(--sf); border-radius: 12px; padding: 32px; }
h1 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.sub { margin: 0 0 24px; color: var(--tx2); font-size: 14px; text-wrap: pretty; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; color: var(--tx2); font-size: 14px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back .ico { font-size: 16px; }
.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 20px; font-size: 13px; color: var(--tx3); }

form { display: flex; flex-direction: column; gap: 14px; }
.kc-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 600; color: var(--tx); }
.required { color: var(--tx3); }
.kc-input, input[type="text"], input[type="password"], input[type="email"] {
  height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--sf); color: var(--tx);
  box-shadow: inset 0 0 0 1.5px var(--bd2); font: inherit; width: 100%; outline: none;
}
.kc-input:focus-visible, input:focus-visible { box-shadow: inset 0 0 0 2px var(--ac); }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--crit); }
#otp, #totp { height: 52px; padding: 0 16px; font: 500 24px "Atkinson Hyperlegible Mono", ui-monospace, monospace; letter-spacing: 0.4em; }
.kc-err { font-size: 13.5px; color: var(--crit); }
.kc-input-group { position: relative; }
.kc-input-group input { padding-right: 44px; }
.kc-eye { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--tx3); cursor: pointer; display: grid; place-items: center; }
.kc-eye:hover { background: var(--sf2); }
.kc-eye i { font-family: "Material Symbols Outlined"; font-style: normal; font-weight: 300; font-size: 18px; font-feature-settings: "liga"; }
.kc-eye-show::before { content: "visibility"; }
.kc-eye-hide::before { content: "visibility_off"; }
#kc-form-options:empty { display: none; }
.kc-btn { height: 40px; border: 0; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; padding: 0 16px; }
.kc-btn-primary, input[type="submit"] { width: 100%; background: var(--ac); color: var(--sf); margin-top: 6px; }
.kc-btn-primary:hover, input[type="submit"]:hover { background: var(--ac-hover); }
.kc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#kc-form-buttons { display: flex; flex-direction: column; gap: 8px; }
#kc-form-buttons button:not(.kc-btn-primary) { background: var(--sf); color: var(--tx); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--bd2); }
.linklike { background: none; border: 0; padding: 0; color: var(--ac); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.alt { margin-top: 14px; align-items: center; }
.kc-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: var(--sf3); font-size: 14px; margin-bottom: 16px; }
.kc-alert .ico { color: var(--tx2); margin-top: 1px; }
.kc-alert-error { background: var(--critbg); }
.kc-alert-error .ico { color: var(--crit); }
.kc-alert-success { background: var(--okbg); }
.kc-alert-success .ico { color: var(--ok); }
.kc-alert-warning { background: var(--highbg); }

/* TOTP enrolment page (base login-config-totp.ftl) */
#kc-totp-settings { margin: 0 0 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--tx2); }
#kc-totp-settings p { margin: 4px 0; }
#kc-totp-supported-apps { padding-left: 18px; }
#kc-totp-secret-qr-code { display: block; width: 168px; height: 168px; margin: 8px 0; border-radius: 6px; background: #fff; padding: 6px; }
#kc-totp-secret-key { font: 500 14px "Atkinson Hyperlegible Mono", ui-monospace, monospace; word-break: break-all; color: var(--tx); }
#kc-otp-login-form .kc-otp-list, .pf-c-tile { display: none; }
