/* HRNexus auth pages: sign in, reset, forced password change */
.auth-view{--a1:#4f46e5;--a2:#7c3aed;--a3:#06b6d4;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;
  min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);background:#f8fafc;
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.auth-brand{position:relative;overflow:hidden;color:#fff;padding:56px;display:flex;align-items:center;
  background:linear-gradient(135deg,#1e1b4b 0%,var(--a1) 45%,var(--a2) 100%)}
.auth-orb{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;animation:authFloat 16s ease-in-out infinite}
.auth-orb-a{width:380px;height:380px;background:#22d3ee;top:-90px;left:-80px}
.auth-orb-b{width:320px;height:320px;background:#f472b6;bottom:-80px;right:-60px;animation-delay:-5s}
.auth-orb-c{width:240px;height:240px;background:#a78bfa;top:45%;left:55%;animation-delay:-10s}
@keyframes authFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(30px,-24px) scale(1.08)}}
.auth-brand-inner{position:relative;max-width:460px}
.auth-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;letter-spacing:-.01em}
.auth-logo-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;font-size:15px;font-weight:800;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(6px)}
.auth-headline{font-size:clamp(28px,3.2vw,40px);line-height:1.15;letter-spacing:-.02em;margin:40px 0 28px;font-weight:700}
.auth-points{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.auth-points li{position:relative;padding-left:32px;font-size:16px;color:rgba(255,255,255,.9)}
.auth-points li::before{content:"";position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;
  background:rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat}
.auth-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;gap:20px}
.auth-topline{width:100%;max-width:420px;display:flex;justify-content:flex-end;align-items:center}
.auth-logo-compact{display:none;color:var(--ink)}
.auth-logo-compact .auth-logo-mark{background:linear-gradient(135deg,var(--a1),var(--a2));color:#fff;border:0}
.auth-lang select{appearance:none;border:1px solid var(--line);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center/14px no-repeat;
  border-radius:999px;padding:7px 32px 7px 14px;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.auth-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:36px;
  box-shadow:0 1px 2px rgba(15,23,42,.04),0 20px 50px -20px rgba(79,70,229,.25);animation:authIn .45s ease-out both}
@keyframes authIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.auth-title{font-size:26px;letter-spacing:-.02em;margin:0 0 6px;font-weight:700}
.auth-sub{margin:0 0 24px;color:var(--muted);font-size:14.5px;line-height:1.5}
.auth-form{display:grid;gap:16px}
.auth-field{display:grid;gap:6px}
.auth-field label{font-size:13.5px;font-weight:600;color:#334155}
.auth-input-wrap{position:relative}
.auth-input-wrap input{width:100%;box-sizing:border-box;height:46px;border:1px solid #cbd5e1;border-radius:12px;padding:0 14px;
  font:inherit;font-size:15px;color:var(--ink);background:#fff;transition:border-color .15s,box-shadow .15s}
.auth-input-wrap input:hover{border-color:#94a3b8}
.auth-input-wrap input:focus{outline:none;border-color:var(--a1);box-shadow:0 0 0 4px rgba(79,70,229,.15)}
.auth-field:has(.auth-toggle) input{padding-right:46px}
.auth-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:9px;
  background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.auth-toggle:hover{background:#f1f5f9;color:var(--ink)}
.auth-toggle[aria-pressed=true]{color:var(--a1)}
.auth-toggle:focus-visible,.auth-link:focus-visible,.auth-submit:focus-visible,.auth-secondary:focus-visible,.auth-lang select:focus-visible{outline:3px solid rgba(79,70,229,.45);outline-offset:2px}
.auth-row{display:flex;justify-content:flex-end;margin-top:-6px}
.auth-link{border:0;background:none;padding:0;font:inherit;font-size:14px;color:var(--a1);font-weight:600;cursor:pointer}
.auth-link:hover{text-decoration:underline}
.auth-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;height:48px;border:0;border-radius:12px;
  font:inherit;font-weight:600;font-size:15.5px;color:#fff;cursor:pointer;background:linear-gradient(135deg,var(--a1),var(--a2));
  box-shadow:0 10px 24px -10px rgba(79,70,229,.7);transition:transform .12s,box-shadow .2s,filter .2s}
.auth-submit:hover{filter:brightness(1.07);box-shadow:0 14px 28px -10px rgba(79,70,229,.8)}
.auth-submit:active{transform:translateY(1px)}
.auth-submit:disabled{cursor:progress;filter:saturate(.7) brightness(.95)}
.auth-spinner{display:none;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:authSpin .7s linear infinite}
.auth-submit.is-busy .auth-spinner{display:inline-block}
@keyframes authSpin{to{transform:rotate(360deg)}}
.auth-secondary{height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-weight:600;color:#334155;cursor:pointer}
.auth-secondary:hover{background:#f8fafc}
.auth-hint{margin:-8px 0 0;font-size:12.5px;color:var(--muted)}
.auth-message{border-radius:12px;padding:11px 14px;font-size:14px;line-height:1.45;word-break:break-word}
.auth-message[data-tone=error]{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}
.auth-message[data-tone=success]{background:#ecfdf5;border:1px solid #a7f3d0;color:#047857}
.auth-foot{margin:22px 0 0;text-align:center;font-size:14px;color:var(--muted)}
.auth-footer{background:none;border:0;color:var(--muted);font-size:12.5px;text-align:center}
@media (max-width:860px){
  .auth-view{grid-template-columns:1fr}
  .auth-brand{padding:28px 24px 64px;min-height:auto}
  .auth-headline{font-size:22px;margin:18px 0 0}
  .auth-points{display:none}
  .auth-main{margin-top:-44px;padding:0 16px 24px;justify-content:flex-start}
  .auth-topline{order:-1;justify-content:flex-end;position:absolute;top:24px;right:20px;width:auto}
  .auth-lang select{background-color:rgba(255,255,255,.95)}
  .auth-card{padding:26px 22px;border-radius:18px}
}
@media (prefers-reduced-motion:reduce){.auth-orb,.auth-card,.auth-spinner{animation:none}}
.auth-view{position:relative}
.auth-main{position:relative;z-index:1}
