/* Authentication UI — isolated from dashboard styles */
.auth-page{min-height:100vh;background:#f3f6f4;color:#17201b}
.auth-page *{box-sizing:border-box}
.auth-page .content,.auth-page .content-full{padding:0!important;max-width:none!important;margin:0!important;width:100%!important}
.auth-page .app-shell,.auth-page .guest-shell{display:block!important;min-height:100vh!important}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);overflow:hidden}
.auth-visual{min-height:100vh;position:relative;overflow:hidden;padding:52px clamp(36px,6vw,86px);display:flex;flex-direction:column;justify-content:space-between}
.auth-visual--staff{background:radial-gradient(circle at 82% 15%,rgba(250,97,193,.18),transparent 28%),linear-gradient(140deg,#0d120f 0%,#141d17 52%,#202a23 100%);color:#fff}
.auth-visual--staff:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(250,97,193,.12);border-radius:50%;right:-190px;bottom:-210px;box-shadow:0 0 0 70px rgba(250,97,193,.018),0 0 0 140px rgba(250,97,193,.01)}
.auth-visual--client{background:radial-gradient(circle at 78% 14%,rgba(250,97,193,.26),transparent 27%),linear-gradient(145deg,#f9fbf9 0%,#edf4ef 55%,#e4ede7 100%);color:#17201b;border-right:1px solid #dbe4de}
.auth-brand{position:relative;z-index:2;display:flex;align-items:center;gap:13px;min-height:50px}
.auth-brand img{display:block;max-width:210px;max-height:52px;object-fit:contain;object-position:left center}
.auth-brand__mark{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:21px;font-weight:900;flex:0 0 auto}
.auth-visual--staff .auth-brand__mark{background:#fa61c1;color:#fff;box-shadow:0 10px 26px rgba(250,97,193,.16)}
.auth-visual--client .auth-brand__mark{background:#111714;color:#fa61c1}
.auth-brand__copy{display:flex;flex-direction:column;min-width:0}.auth-brand__copy strong{font-size:15px;line-height:1.1}.auth-brand__copy small{font-size:9px;text-transform:uppercase;letter-spacing:.15em;margin-top:6px;color:#7d8a82}
.auth-visual--staff .auth-brand__copy small{color:#7f8c84}
.auth-copy{position:relative;z-index:2;max-width:720px;margin:60px 0 36px}
.auth-kicker{display:flex;align-items:center;gap:9px;font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#7d8982}.auth-kicker:before{content:"";width:24px;height:3px;border-radius:99px;background:#ed42aa}.auth-visual--staff .auth-kicker{color:#87948c}
.auth-copy h1{font-size:clamp(46px,5.2vw,74px);line-height:.98;letter-spacing:-.06em;margin:14px 0 22px;max-width:760px}
.auth-copy p{font-size:16px;line-height:1.7;margin:0;max-width:620px;color:#657269}.auth-visual--staff .auth-copy p{color:#abb6af}
.auth-pills{display:flex;gap:9px;flex-wrap:wrap;margin-top:28px}.auth-pills span{font-size:10px;font-weight:700;border-radius:999px;padding:9px 12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.035);color:#c4cdc7}.auth-visual--client .auth-pills span{border-color:#d9e3dc;background:rgba(255,255,255,.72);color:#59675e}
.auth-footnote{position:relative;z-index:2;font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:#647168}
.auth-preview{position:relative;z-index:2;background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.95);backdrop-filter:blur(12px);border-radius:19px;padding:18px 20px;box-shadow:0 20px 50px rgba(25,40,30,.08);max-width:620px;margin-top:30px}.auth-preview__top{display:flex;justify-content:space-between;gap:20px;align-items:center}.auth-preview small{font-size:8px;letter-spacing:.13em;font-weight:800;color:#8c9690}.auth-preview strong{font-size:14px;display:block;margin-top:4px}.auth-preview__pct{font-size:24px;font-weight:850;letter-spacing:-.04em}.auth-preview__bar{height:6px;background:#e4ebe6;border-radius:999px;overflow:hidden;margin:14px 0 12px}.auth-preview__bar i{display:block;width:75%;height:100%;background:#17201b;border-radius:inherit}.auth-preview__steps{display:flex;gap:14px;flex-wrap:wrap;font-size:9px;font-weight:700;color:#929d96}.auth-preview__steps .done{color:#55635a}.auth-preview__steps .active{color:#17201b}
.auth-formpane{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:44px;background:#fff;position:relative;z-index:4}
.auth-card{width:min(430px,100%);margin:auto}.auth-card--wide{width:min(560px,100%)}
.auth-card__eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#6f7a73}.auth-card__eyebrow:before{content:"";width:22px;height:3px;border-radius:9px;background:#ed42aa}
.auth-card h2{font-size:31px;letter-spacing:-.045em;line-height:1.08;margin:13px 0 8px}.auth-card>p{font-size:13px;color:#727d76;line-height:1.6;margin:0 0 24px}
.auth-form{display:grid;gap:14px}.auth-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-field{display:flex;flex-direction:column;gap:7px;min-width:0}.auth-field--full{grid-column:1/-1}.auth-field label{font-size:9px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#5e6962}.auth-field input{display:block;width:100%;height:48px;border:1px solid #d9e1dc;background:#f9fbfa;color:#17201b;border-radius:12px;padding:0 13px;outline:none;box-shadow:none}.auth-field input:focus{border-color:#fa61c1;background:#fff;box-shadow:0 0 0 3px rgba(250,97,193,.16)}
.auth-button{appearance:none;border:0;width:100%;height:49px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-weight:800;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.auth-button:hover{transform:translateY(-1px)}.auth-button--staff{background:#fa61c1;color:#fff;box-shadow:0 10px 24px rgba(250,97,193,.18)}.auth-button--client{background:#111714;color:#fff;box-shadow:0 10px 24px rgba(17,23,20,.13)}.auth-button span{font-size:18px}
.auth-alert{padding:12px 13px;border-radius:11px;margin-bottom:16px;font-size:12px;font-weight:650}.auth-alert--danger{background:#ffe8e8;border:1px solid #f2cece;color:#8f2f2f}.auth-alert--success{background:#e6f7eb;border:1px solid #cbe8d4;color:#17633e}
.auth-security{margin-top:18px;padding:13px 14px;border:1px solid #e0e7e3;background:#f8faf9;border-radius:13px;display:grid;grid-template-columns:9px 1fr;gap:10px;align-items:start}.auth-security__dot{width:8px;height:8px;border-radius:50%;background:#148052;margin-top:4px;box-shadow:0 0 0 4px rgba(20,128,82,.08)}.auth-security b{display:block;font-size:10px}.auth-security small{display:block;font-size:9px;line-height:1.45;color:#88928c;margin-top:2px}
.auth-switch{margin-top:19px;padding:14px;border:1px solid #e1e7e3;background:#fafcfb;border-radius:14px;display:flex;gap:12px;align-items:center;justify-content:space-between}.auth-switch div{display:flex;flex-direction:column;gap:3px}.auth-switch small{font-size:9px;color:#8a948e}.auth-switch b{font-size:11px}.auth-switch a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border-radius:9px;border:1px solid #dde4df;background:#fff;font-size:10px;font-weight:800;white-space:nowrap}
.auth-back{display:inline-flex;margin-top:21px;color:#77827b;font-size:10px;font-weight:750}.auth-back:hover{color:#1c2520}.auth-hint{font-size:10px;color:#7f8a83;margin-top:-3px}
@media(max-width:980px){.auth-layout{grid-template-columns:1fr;overflow:visible}.auth-visual,.auth-formpane{min-height:auto}.auth-visual{padding:40px 30px}.auth-copy{margin:52px 0 26px}.auth-formpane{padding:38px 22px 52px}.auth-footnote{display:none}}
@media(max-width:680px){.auth-visual{padding:28px 20px}.auth-copy{margin:38px 0 16px}.auth-copy h1{font-size:39px}.auth-copy p{font-size:13px}.auth-pills{display:none}.auth-preview{margin-top:20px;padding:15px}.auth-preview__steps{display:grid;grid-template-columns:1fr 1fr}.auth-formpane{padding:25px 16px 40px}.auth-card{width:100%}.auth-card h2{font-size:27px}.auth-form-grid{grid-template-columns:1fr}.auth-field--full{grid-column:auto}.auth-switch{align-items:flex-start}.auth-brand img{max-width:170px}.auth-page{background:#fff}}
@media(max-width:390px){.auth-visual{padding:24px 16px}.auth-formpane{padding:22px 14px 34px}.auth-copy h1{font-size:35px}.auth-preview{display:none}.auth-switch{flex-direction:column}.auth-switch a{width:100%}}


/* V4.11 brand + auth overflow hardening */
.auth-layout,.auth-visual,.auth-formpane,.auth-card,.auth-card *{box-sizing:border-box}
.auth-layout{max-width:100%;overflow:hidden}
.auth-card,.auth-formpane,.auth-visual{min-width:0}
.auth-button--staff{background:#fa61c1!important;color:#fff!important}
.auth-visual--staff .auth-brand__mark{background:#fa61c1!important;color:#fff!important}
.auth-field input:focus{border-color:#fa61c1!important;box-shadow:0 0 0 3px rgba(250,97,193,.15)!important}
@media(max-width:980px){.auth-layout{overflow:visible}.auth-formpane{width:100%}.auth-card{max-width:560px}}


/* V4.16 — mobile auth polish (desktop untouched) */
.auth-button .ui-icon,.auth-switch .ui-icon,.auth-back .ui-icon{width:18px;height:18px;flex:0 0 auto;display:block}
.auth-button__label{display:flex;align-items:center;gap:9px;min-width:0}
@media(max-width:680px){
  .auth-page{min-height:100dvh;background:#fff;overflow-x:hidden}
  .auth-layout{display:block;min-height:100dvh;width:100%;overflow:visible}
  .auth-visual{min-height:0!important;padding:22px 18px 18px!important;border:0!important}
  .auth-visual--staff{background:radial-gradient(circle at 90% -5%,rgba(250,97,193,.22),transparent 34%),linear-gradient(145deg,#0d120f,#162019 72%,#1d2821)}
  .auth-visual--client{background:radial-gradient(circle at 90% -10%,rgba(250,97,193,.24),transparent 38%),linear-gradient(145deg,#f7faf8,#edf4ef)}
  .auth-brand{min-height:42px;gap:10px}
  .auth-brand img{max-width:138px;max-height:42px}
  .auth-brand__mark{width:40px;height:40px;border-radius:12px}
  .auth-brand__copy strong{font-size:14px}.auth-brand__copy small{font-size:8px;margin-top:4px}
  .auth-copy{margin:24px 0 0!important;max-width:none}
  .auth-kicker{font-size:8px}.auth-kicker:before{width:18px;height:2px}
  .auth-copy h1{font-size:clamp(31px,9.2vw,42px)!important;line-height:1.01;margin:10px 0 10px;letter-spacing:-.05em}
  .auth-copy p{font-size:12.5px;line-height:1.55;max-width:560px}
  .auth-pills,.auth-preview,.auth-footnote{display:none!important}
  .auth-formpane{min-height:0!important;padding:22px 16px max(34px,env(safe-area-inset-bottom))!important;align-items:flex-start;background:#fff}
  .auth-card,.auth-card--wide{width:100%!important;max-width:520px!important;margin:0 auto!important}
  .auth-card__eyebrow{font-size:8px}.auth-card h2{font-size:26px;margin:9px 0 6px}.auth-card>p{font-size:12px;line-height:1.5;margin-bottom:18px}
  .auth-form,.auth-form-grid{grid-template-columns:1fr!important;gap:12px!important}
  .auth-field--full{grid-column:auto!important}.auth-field{gap:6px}.auth-field label{font-size:8.5px}
  .auth-field input{height:50px;border-radius:13px;font-size:16px;padding:0 14px}
  .auth-button{height:52px;border-radius:13px;padding:0 15px;font-size:14px}
  .auth-security{margin-top:14px}.auth-switch{margin-top:15px;padding:12px 13px;border-radius:13px;align-items:center}
  .auth-switch a{min-height:38px;padding:8px 12px}.auth-back{margin-top:17px;min-height:38px;align-items:center}
}
@media(max-width:390px){
  .auth-visual{padding:18px 14px 15px!important}.auth-formpane{padding-left:14px!important;padding-right:14px!important}
  .auth-copy h1{font-size:30px!important}.auth-brand__copy small{display:none}
  .auth-switch{gap:8px}.auth-switch b{font-size:10px}.auth-switch a{font-size:9.5px;padding:7px 9px}
}


/* V4.17 staff logo cleanup */
.auth-brand{line-height:0}
.auth-brand img{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;vertical-align:middle}
.auth-brand__copy{line-height:1.1}

/* V4.24 — final auth color + legacy collision cleanup */
.auth-page .auth-brand{
  padding-bottom:0!important;
  margin-bottom:0!important;
  border-bottom:0!important;
  border:0!important;
}
.auth-page .auth-visual--client{
  background:
    radial-gradient(circle at 78% 14%,rgba(250,97,193,.24),transparent 30%),
    linear-gradient(145deg,#ffffff 0%,#fffafd 58%,#fff4fb 100%)!important;
  border-right:1px solid #f4dcea!important;
}
.auth-page .auth-visual--client .auth-copy p{color:#707872}
.auth-page .auth-visual--client .auth-preview{
  background:rgba(255,255,255,.9);
  border-color:#f4ddea;
  box-shadow:0 20px 50px rgba(250,97,193,.08);
}
.auth-page .auth-visual--client .auth-preview__bar{background:#f4e7ef}
.auth-page .auth-visual--client .auth-preview__bar i{background:#fa61c1}
.auth-page .auth-visual--client .auth-preview__steps .done,
.auth-page .auth-visual--client .auth-preview__steps .active{color:#161916}
@media(max-width:680px){
  .auth-page .auth-visual--client{
    background:
      radial-gradient(circle at 90% -10%,rgba(250,97,193,.22),transparent 40%),
      linear-gradient(145deg,#fff 0%,#fff7fc 100%)!important;
  }
}
