/* ADMIN Center v2 — sign-in screen */
.auth-body{margin:0;min-height:100vh;min-height:100dvh;background:var(--paper);color:var(--ink)}
.auth-shell{display:grid;grid-template-columns:minmax(380px,44%) 1fr;min-height:100vh;min-height:100dvh}

/* Brand side: the institution's colour, the system name set large */
.auth-brand{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:40px;padding:40px 48px;color:#fff;background:var(--primary)}
.auth-brand::before{content:"";position:absolute;inset:0;background-image:var(--auth-photo);background-size:cover;background-position:center;opacity:.22;mix-blend-mode:luminosity}
.auth-brand::after{content:"";position:absolute;inset:0;background:
  linear-gradient(180deg,color-mix(in srgb,var(--primary) 30%,transparent),var(--primary) 92%),
  repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 72px),
  repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 72px)}
.auth-brand>*{position:relative;z-index:1}
.auth-brand-top{display:flex;align-items:center;gap:12px;font-weight:600}
.auth-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-md);background:#fff;color:var(--primary);font-weight:700;font-size:15px}
.auth-logo{width:40px;height:40px;object-fit:contain;border-radius:var(--r-sm);background:#fff;padding:3px}
.auth-system{font-size:16px}
.auth-title{margin:0;font-size:clamp(44px,5.4vw,76px);line-height:.98;font-weight:700;letter-spacing:-.02em;text-transform:uppercase}
.auth-sub{margin:18px 0 0;max-width:30ch;font-size:17px;line-height:1.6;color:rgba(255,255,255,.76)}
.auth-points{list-style:none;margin:0;padding:22px 0 0;border-top:1px solid rgba(255,255,255,.16);display:grid;gap:10px;font-size:14.5px;color:rgba(255,255,255,.8)}
.auth-points li{display:flex;align-items:center;gap:10px}
.auth-points .material-symbols-rounded{font-size:19px;color:#fff;opacity:.9}

/* Form side */
.auth-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px 24px}
.auth-card{width:100%;max-width:400px}
.auth-mobile-brand{display:none}
.auth-heading{margin:0;font-size:30px;font-weight:600;letter-spacing:-.01em}
.auth-lead{margin:4px 0 26px;color:var(--muted)}
.auth-alert{display:flex;gap:10px;align-items:flex-start;margin:-8px 0 18px;animation:dialog-in var(--t-slow) var(--ease-out) both}
.auth-alert .material-symbols-rounded{font-size:20px;margin-top:1px}
.auth-form{display:grid;gap:16px}
.auth-field label{display:block;margin-bottom:6px;font-size:14px;font-weight:500;color:var(--ink-2)}
.auth-input{position:relative;display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);transition:border-color var(--t-fast),box-shadow var(--t-fast)}
.auth-input:hover{border-color:#a9adc0}
.auth-input:focus-within{border-color:var(--accent);box-shadow:var(--focus)}
.auth-input.is-invalid{border-color:var(--bad)}
.auth-input>.material-symbols-rounded{position:absolute;left:13px;color:var(--muted);font-size:20px;pointer-events:none;transition:color var(--t-fast)}
.auth-input:focus-within>.material-symbols-rounded{color:var(--accent-ink)}
.auth-input input{border:0!important;box-shadow:none!important;background:transparent!important;min-height:48px!important;padding:10px 12px 10px 44px!important;font-size:16px!important}
.auth-reveal{display:grid;place-items:center;width:44px;height:44px;margin-right:2px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--muted);cursor:pointer}
.auth-reveal:hover{color:var(--ink);background:var(--surface-2)}
.auth-hint{display:block;min-height:0;color:var(--bad);font-size:var(--fs-sm);font-weight:500;margin-top:4px}
.auth-hint:empty{display:none}
.auth-caps{display:flex;align-items:center;gap:4px;margin-top:6px;color:var(--warn);font-size:var(--fs-sm)}
.auth-caps[hidden]{display:none}
.auth-caps .material-symbols-rounded{font-size:16px}
.auth-submit{width:100%;min-height:50px;margin-top:6px;font-size:16px}
.auth-secondary{width:100%;margin-top:8px}
.auth-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.auth-links .btn{min-height:44px}
.auth-help{display:flex;gap:8px;align-items:flex-start;margin:24px 0 0;padding:12px 14px;border-radius:var(--r-md);font-size:var(--fs-sm);line-height:1.6;color:var(--muted);background:transparent;border:1px solid transparent;transition:background var(--t),border-color var(--t),color var(--t)}
.auth-help .material-symbols-rounded{font-size:18px;margin-top:1px}
.auth-help.is-highlight{background:var(--accent-soft);border-color:var(--accent-line);color:var(--ink)}
.auth-install{width:100%;margin-top:12px}
.auth-install[hidden]{display:none}
.auth-foot{margin:28px 0 0;color:var(--muted);font-size:var(--fs-xs)}
.auth-step{text-align:center}
.auth-step h2{margin:14px 0 6px;font-size:22px;font-weight:600}
.auth-step .auth-lead{margin-bottom:22px}
.auth-step-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink)}
.auth-step-icon .material-symbols-rounded{font-size:32px}
.auth-step-icon.warn{background:var(--warn-bg);color:var(--warn)}
.is-passkey .auth-step-icon{animation:passkey-pulse 2.4s var(--ease) infinite}
@keyframes passkey-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 30%,transparent)}50%{box-shadow:0 0 0 14px color-mix(in srgb,var(--accent) 0%,transparent)}}
.auth-step .alert{margin-bottom:14px;text-align:left}
.shake{animation:shake .38s var(--ease)}
@keyframes shake{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}

/* Entrance: the brand panel settles, then the form rises — one sequence */
.auth-brand{animation:auth-brand-in .7s var(--ease-out) both}
.auth-title{animation:auth-rise .8s .12s var(--ease-out) both}
.auth-sub,.auth-points{animation:auth-rise .8s .22s var(--ease-out) both}
.auth-card{animation:auth-rise .7s .18s var(--ease-out) both}
@keyframes auth-brand-in{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes auth-rise{from{opacity:0;transform:translateY(14px)}}

@media (max-width:900px){
  .auth-shell{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .auth-brand{padding:max(20px,env(safe-area-inset-top)) 22px 26px;gap:18px;animation:fade-in .5s both}
  .auth-brand-top{display:none}
  .auth-title{font-size:clamp(34px,10vw,48px)}
  .auth-sub{margin-top:8px;font-size:15px}
  .auth-points{display:none}
  .auth-panel{justify-content:flex-start;padding:26px 20px calc(20px + env(safe-area-inset-bottom,0px));margin-top:-16px;background:var(--paper);border-radius:var(--r-xl) var(--r-xl) 0 0;position:relative;z-index:2}
  .auth-mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px;font-size:15px}
  .auth-mobile-brand .auth-mark{width:34px;height:34px;font-size:13px;background:var(--primary);color:#fff}
  .auth-heading{font-size:26px}
}
@media (max-width:380px){.auth-links{grid-template-columns:1fr}}
