/* Sign-in screens: staff panel + agent portal */
:root{
  --ink:#1b1f4b; --indigo:#232a7c; --indigo-2:#2f38a3; --leaf:#3c8a37; --gold:#e3a92b;
  --paper:#f5f6fb; --line:#dfe3f0; --muted:#666c8f; --danger:#b42318; --danger-bg:#fdecea; --info-bg:#eef1ff;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;height:100%}
.auth-body{font-family:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-size:15px;line-height:1.5}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,5fr) 7fr}
.auth-brand{background:var(--indigo);color:#fff;padding:56px 48px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;position:relative;overflow:hidden;border-right:6px solid var(--gold)}
.auth-brand::after{content:"";position:absolute;right:-140px;bottom:-140px;width:420px;height:420px;border-radius:50%;border:56px solid rgba(255,255,255,.06)}
.auth-logo{width:132px;height:132px;object-fit:contain;background:#fff;border-radius:50%;padding:10px;margin-bottom:28px}
.auth-brand-name{font-family:'Sora',sans-serif;font-weight:700;font-size:24px;line-height:1.3;margin:0 0 12px;max-width:17em}
.auth-brand-note{margin:0;color:#c9cdf2;font-size:15px}
.auth-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px}
.auth-card{width:100%;max-width:400px}
.auth-card h1{font-family:'Sora',sans-serif;font-size:26px;font-weight:700;margin:0 0 6px;letter-spacing:-.01em}
.auth-sub{color:var(--muted);margin:0 0 22px}
.auth-card label{display:block;font-weight:600;font-size:14px;margin:16px 0 6px}
.auth-card input[type=text],.auth-card input[type=password],.auth-card input[type=email],.auth-card input[type=tel]{
  width:100%;height:46px;padding:0 14px;border:1.5px solid var(--line);border-radius:8px;font:inherit;color:var(--ink);background:#fff;transition:border-color .15s,box-shadow .15s}
.auth-card input:focus{outline:none;border-color:var(--indigo-2);box-shadow:0 0 0 3px rgba(47,56,163,.16)}
.auth-card input[readonly]{background:var(--paper);color:var(--muted)}
.auth-pass{position:relative}
.auth-pass input{padding-right:64px!important}
.auth-eye{position:absolute;right:6px;top:6px;height:34px;padding:0 10px;border:0;background:transparent;color:var(--indigo-2);font:inherit;font-size:13px;font-weight:600;cursor:pointer;border-radius:6px}
.auth-eye:hover{background:var(--info-bg)}
.auth-otp{font-family:'Sora',sans-serif!important;font-size:24px!important;letter-spacing:.5em;text-align:center;height:56px!important}
.auth-btn{width:100%;height:48px;margin-top:22px;border:0;border-radius:8px;background:var(--indigo);color:#fff;font:inherit;font-weight:600;font-size:15px;cursor:pointer;transition:background .15s}
.auth-btn:hover{background:var(--indigo-2)}
.auth-btn:focus-visible,.auth-link:focus-visible,.auth-eye:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.auth-alert{padding:11px 14px;border-radius:8px;font-size:14px;margin-bottom:6px}
.auth-alert.is-error{background:var(--danger-bg);color:var(--danger)}
.auth-alert.is-info{background:var(--info-bg);color:var(--indigo)}
.auth-hint,.auth-timer{font-size:13px;color:var(--muted);margin:6px 0 0}
.auth-timer.is-expired{color:var(--danger);font-weight:600}
.auth-foot{font-size:13px;color:var(--muted);margin:22px 0 0}
.auth-inline{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-top:20px;font-size:14px;color:var(--muted)}
.auth-link,.auth-foot a,.auth-back a{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--indigo-2);cursor:pointer;text-decoration:none}
.auth-link:hover,.auth-foot a:hover,.auth-back a:hover{text-decoration:underline}
.auth-back{margin-top:28px;font-size:14px}
@media (max-width:820px){
  .auth-shell{grid-template-columns:1fr}
  .auth-brand{padding:28px 24px;flex-direction:row;align-items:center;gap:16px;border-right:0;border-bottom:5px solid var(--gold)}
  .auth-brand::after{display:none}
  .auth-logo{width:64px;height:64px;margin:0;padding:5px;flex:none}
  .auth-brand-name{font-size:15px;margin:0}
  .auth-brand-note{display:none}
  .auth-panel{justify-content:flex-start;padding-top:32px}
}
