/* 10A sign-in, two-step, invite and sign-up pages on the redesign (kelmo.css + kelmo-app.css + this file).
   Design canvas: SignIn / Password / Admin-SignIn (+ -m). Replaces the 09L dash.css .kauth look and the Damson side panel. */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter/inter-latin.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter/inter-latin-ext.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}
body.kau-body{margin:0;background:#FFFFFF}
.kau-body .skip-link{position:absolute;left:16px;top:-80px;z-index:200;background:#1F1B16;color:#FFFFFF;padding:12px 20px;border-radius:22px;font-weight:600;font-family:Inter,system-ui,sans-serif}
.kau-body .skip-link:focus{top:12px}
.kau [hidden]{display:none!important}
.k .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* page: logo, one card, a line under it, centred on the screen */
.kau{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:40px 16px}
.kau-logo{display:inline-flex;align-items:center;gap:12px;color:#1F1B16}
.kau-logo .klogo{height:32px;width:auto;overflow:visible;display:block}
.kau-card{width:400px;max-width:100%;padding:32px;gap:20px}
.kau-card--wide{width:440px}
.kau-head{display:flex;flex-direction:column;gap:4px}
.kau-head .sub b{font-weight:600;color:#1F1B16;overflow-wrap:anywhere}
.kau-head .sub a,.kau-foot a{font-weight:600}
.kau-foot{text-align:center}
.kau-c{text-align:center}
.kau-back{display:none}
.kau-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:#F7F5F2;border:1px solid #E4E7EC;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4B4741}
.kau-card form{display:flex;flex-direction:column;gap:20px;margin:0}
.kau-card .btn.p.w,.kau-card .btn.w{height:48px}
.kau-links{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center}
.kau-links form{margin:0;display:inline}
.kau-inline{display:inline;margin:0}
.btn.q.kau-q{display:inline;height:auto;padding:12px 4px;font-size:13px;line-height:inherit;white-space:normal;border:0;border-radius:6px}
.kau-more{border-top:1px solid #F0F2F5;padding-top:16px;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center}

/* fields */
.fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.fld > span:first-child,.fld > label{font-size:13px;color:#4B4741;line-height:1.4}
.fld input,.fld select{height:48px;width:100%;padding:0 14px;border:1px solid #D3D6DC;border-radius:10px;font-family:inherit;font-size:16px;color:#1F1B16;background:#FFFFFF}
.fld input::placeholder{color:#6B655E}
.fld input:focus,.fld select:focus{outline:none;border-color:#82326C;box-shadow:0 0 0 3px #FAE4F2}
.fld input[aria-invalid="true"]{border-color:#A73447}
.fld small{font-size:13px;color:#4B4741}
.fld small.err{color:#A73447;font-weight:500}
.kau-pw{position:relative;display:block}
.kau-pw input{padding-right:52px}
.kau-pw button{position:absolute;right:2px;top:2px;width:44px;height:44px;border:0;background:none;border-radius:8px;color:#4B4741;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.kau-pw button:hover{color:#1F1B16;background:#F7F8FA}
.kau-pw button svg{width:18px;height:18px}

/* checkbox (design .chk) */
.chk{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px;cursor:pointer;min-width:0}
.chk .sr{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.chk .cbx{width:22px;height:22px;flex:none;border-radius:6px;border:1.5px solid #C5CAD3;background:#FFFFFF;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s ease-out,border-color .15s ease-out}
.chk .cbx svg{opacity:0;transition:opacity .15s ease-out}
.chk .sr:checked + .cbx{background:#82326C;border-color:#82326C}
.chk .sr:checked + .cbx svg{opacity:1}
.chk .sr:focus-visible + .cbx{box-shadow:0 0 0 3px #FAE4F2}

/* messages: kept as .alert--error so kelmo-motion.js shakes the code boxes */
.kau-alert{margin:0;padding:12px 14px;border-radius:10px;background:#FBE9EC;border:1px solid #F1CBD2;color:#A73447;font-size:14px;font-weight:500;line-height:1.4}
.kau-alert--ok{background:#E6F2E9;border-color:#C7E1CE;color:#2B7440}
.km-shake .fld,.km-shake .km-otp{animation:kmShake .42s cubic-bezier(.36,.07,.19,.97)}

/* 6-box code (kelmo-motion.js wraps input.kauth__code / [data-otp-input] in .km-otp) */
.kau-code legend{margin-bottom:8px;padding:0}
.kau-code{border:0;padding:0;margin:0;min-width:0}
:is(.kau,.kst) .km-otp__boxes span{height:58px;font-size:24px;border-radius:10px}
:is(.kau,.kst) .km-otp__input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;letter-spacing:0;cursor:text;caret-color:transparent;border:0;padding:0}
:is(.kau,.kst) input.kauth__code:not(.km-otp__input){height:58px;width:100%;border:1px solid #D3D6DC;border-radius:10px;font:600 24px Inter,system-ui,sans-serif;letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}
:is(.kau,.kst) .km-otp:focus-within .km-otp__boxes span.is-active{box-shadow:0 0 0 3px #FAE4F2;border-color:#82326C}

/* two-step extras */
.kau-steps{margin:0;padding-left:20px;display:grid;gap:14px;font-size:14px}
.kau-steps b{font-weight:600}
.kau-qr{margin:12px 0 8px;padding:12px;background:#FFFFFF;border:1px solid #E4E7EC;border-radius:12px;width:fit-content}
.kau-key{font-size:14px;letter-spacing:.06em;overflow-wrap:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.kau-codes{list-style:none;padding:16px;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;background:#FFFFFF;border:1px solid #E4E7EC;border-radius:12px}
.kau-codes code{font-size:16px;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.kau-acts{display:flex;gap:10px;flex-wrap:wrap}
details.kau-help summary{cursor:pointer;color:#82326C;font-weight:600;min-height:44px;display:flex;align-items:center;list-style:none}
details.kau-help summary::-webkit-details-marker{display:none}
details.kau-help p{margin-top:4px}

/* entrance */
.kau-card{animation:kin .32s ease-out both}
@media (prefers-reduced-motion:reduce){.kau-card{animation:none}.km-shake .fld,.km-shake .km-otp{animation:none}}

/* phone (SignIn-m / Password-m / Admin-SignIn-m): no card border, logo top-left, line pinned to the bottom */
@media (max-width:900px){
 .kau{justify-content:flex-start;align-items:stretch;gap:32px;padding:48px 16px 32px}
 .kau > .kau-logo{align-self:flex-start}
 .kau > .kau-logo .klogo{height:28px}
 .kau-card,.kau-card--wide{width:auto;border:0;padding:0;border-radius:0;gap:22px}
 .kau-card form{gap:16px}
 .kau-card .btn.p.w{height:52px;font-size:16px}
 .kau-head{gap:6px}
 .kau .kau-foot{margin-top:auto}
 .kau .fld > span:first-child,.kau .fld > label{font-size:14px;font-weight:600;color:#1F1B16}
 .kau--sub{padding-top:0;gap:12px}
 .kau--sub .kau-logo{display:none}
 .kau--sub .kau-back{display:flex;height:56px;align-items:center;margin:0 -10px}
 .kau-card{animation:none}
 .kau-card > *{animation:kin .32s ease-out both}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce){.kau-card > *{animation:none}}
@media print{.kau-acts,.kau-logo,.kau-foot,.btn{display:none!important}.kau-card{border:0}}
