/* Customer login / signup: focused split screen. Form on the left, the brand photo on the dashboard's navy hero on the right.
   Colours come from styles.css (--red, --navy, --muted) and home.css .hm-hero, so login and the workspace feel like one product. */
body[data-page="login"]:not(.portal-body){background:#fff}
body[data-page="login"]:not(.portal-body) .topbar{position:absolute;top:0;left:44%;width:auto;height:auto;padding:26px 48px;background:transparent;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;z-index:3}
body[data-page="login"]:not(.portal-body) .topbar:before,body[data-page="login"]:not(.portal-body) .topbar:after{display:none}
body[data-page="login"]:not(.portal-body) .desktop-nav,body[data-page="login"]:not(.portal-body) .top-actions{display:none}
body[data-page="login"]:not(.portal-body) .app-shell.public{display:block;min-height:0}
body[data-page="login"]:not(.portal-body) .content{position:relative;max-width:none;margin:0;padding:0}
body[data-page="login"]:not(.portal-body) .page-footer{position:absolute;left:44%;bottom:0;width:56%;margin:0;padding:18px 48px;border:0;background:transparent;font-size:12px}

.pa-auth{display:grid;grid-template-columns:44% 56%;min-height:100vh;min-height:100dvh}

/* Form side */
.pa-form{grid-column:2;grid-row:1;position:relative;display:flex;align-items:center;justify-content:center;padding:96px 48px 64px;min-width:0}
.pa-back{position:absolute;top:36px;right:48px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--muted);text-decoration:none}
.pa-back svg{width:15px;height:15px}
.pa-back:hover{color:var(--red)}
.pa-form-inner{width:100%;max-width:420px;display:flex;flex-direction:column;gap:16px}
.pa-auth .auth-card{width:100%;margin:0;padding:0;border:0!important;background:transparent;box-shadow:none!important}
.pa-auth .auth-tabs{margin-bottom:22px}
.pa-auth .auth-panel h2{font-size:28px;letter-spacing:-.8px;margin:0 0 6px;color:var(--navy)}
.pa-auth .auth-panel>p{margin:0 0 18px;color:var(--muted);font-size:15px}
.pa-panel-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:14px;border-radius:14px;background:var(--pink);color:var(--red)}
.pa-panel-icon svg{width:22px;height:22px}
.pa-input{position:relative;display:block}
.pa-input>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#94a0bf;pointer-events:none;z-index:1;transition:color .15s ease}
.pa-auth .pa-input input{width:100%;padding-left:42px;background:#f8fafd}
.pa-auth .pa-input input:focus{background:#fff}
.pa-input:focus-within>svg{color:var(--red)}
.pa-auth .pa-input input::placeholder{color:#a3adc6}
.pa-auth .auth-panel .form-grid{grid-template-columns:1fr 1fr}
.pa-auth .auth-panel .form-grid>.field:nth-child(5),.pa-auth .auth-panel .form-grid>.check,.pa-auth .auth-panel .form-grid>.btn{grid-column:1/-1}
.pa-auth .auth-form .btn,.pa-auth .auth-panel .form-grid>.btn{min-height:50px;border-radius:12px;font-size:15px}
.pa-auth .auth-panel>.auth-switch{margin:20px 0 0}
.pa-secure{display:flex;align-items:center;justify-content:center;gap:7px;margin:0;padding-top:18px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.pa-secure svg{width:15px;height:15px;color:var(--green)}

/* Brand side */
.pa-showcase{grid-column:1;grid-row:1;position:relative;overflow:hidden;isolation:isolate;margin:14px 0 14px 14px;border-radius:28px;padding:44px 40px 36px;color:#fff;display:flex;flex-direction:column;justify-content:center;gap:34px;
  background:radial-gradient(800px 360px at 100% -20%,rgba(255,45,85,.45),transparent 60%),radial-gradient(700px 340px at -10% 120%,rgba(124,58,237,.5),transparent 60%),linear-gradient(135deg,#081136,#101a52 55%,#1a0d3f)}
.pa-showcase:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.5;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(180deg,#000,transparent 90%)}
.pa-photo{position:relative;align-self:center;width:min(100%,(100vh - 330px) * 2)}
.pa-photo img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:2/1;object-fit:cover;border-radius:22px;border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 60px -28px rgba(0,0,0,.7)}
.pa-chip{position:absolute;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:16px;background:rgba(10,18,60,.78);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px);box-shadow:0 18px 36px -18px rgba(0,0,0,.7);animation:pa-float 6s ease-in-out infinite}
.pa-chip b{display:block;font-size:14.5px;color:#fff}
.pa-chip small{display:flex;align-items:center;gap:6px;font-size:12.5px;color:rgba(255,255,255,.7)}
.pa-chip-call{top:-22px;left:-18px}
.pa-chip-call small{color:#7ff5c2;font-weight:600}
.pa-chip-call small i{width:7px;height:7px;border-radius:50%;background:#7ff5c2;box-shadow:0 0 0 4px rgba(127,245,194,.18)}
.pa-chip-lang{bottom:22px;left:-18px;font-size:14px;font-weight:600;color:#fff;animation-delay:-2s}
.pa-chip-lang svg{width:16px;height:16px;color:#ff8da0}
.pa-chip-done{right:-18px;bottom:-24px;background:#fff;border-color:#fff;animation-delay:-4s}
.pa-chip-done b{color:var(--navy)}
.pa-chip-done small{color:var(--muted)}
.pa-ok{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e7f8ef;color:var(--green)}
.pa-ok svg{width:17px;height:17px}
.pa-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#ff3d5e,#a31bd6);flex:0 0 auto}
.pa-avatar svg{width:18px;height:18px}
.pa-wave{display:flex;align-items:center;gap:3px;height:26px;margin-left:6px}
.pa-wave i{display:block;width:3px;height:30%;border-radius:3px;background:linear-gradient(#ff8da0,#c084fc);animation:pa-wave 1.2s ease-in-out infinite;animation-delay:calc(var(--d) * -.13s)}
@keyframes pa-wave{0%,100%{height:25%}50%{height:100%}}
@keyframes pa-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

.pa-copy{display:flex;flex-direction:column;align-items:flex-start;padding:0}
.pa-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:rgba(255,255,255,.85)}
.pa-eyebrow svg{width:14px;height:14px;color:#ff8da0}
.pa-copy h1{margin:16px 0 10px;font-size:clamp(30px,2.35vw,46px);line-height:1.08;letter-spacing:-1.5px;color:#fff}
.pa-copy h1 span{background:linear-gradient(90deg,#ff5c7a,#ff9ab0);-webkit-background-clip:text;background-clip:text;color:transparent}
.pa-copy>p{margin:0;max-width:560px;font-size:clamp(15px,1vw,18px);line-height:1.6;color:rgba(255,255,255,.72)}
.pa-feats{list-style:none;margin:20px 0 0;padding:18px 0 0;border-top:1px solid rgba(255,255,255,.12);width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.pa-feats li{display:flex;gap:10px;align-items:flex-start;min-width:0}
.pa-feats li>svg{flex:0 0 auto;width:22px;height:22px;margin-top:1px;color:#ff8da0}
.pa-feats b{display:block;font-size:15px;color:#fff}
.pa-feats small{display:block;margin-top:3px;font-size:13px;line-height:1.4;color:rgba(255,255,255,.6)}

/* Short screens (laptops): tighten so the page never needs a scroll. */
@media (min-width:981px) and (max-height:760px){
  .pa-form{padding:78px 40px 52px}
  .pa-auth .auth-tabs{margin-bottom:16px}
  .pa-auth .auth-tabs button{min-height:40px}
  .pa-auth .auth-panel h2{font-size:24px}
  .pa-auth .auth-panel>p{margin-bottom:12px;font-size:14px}
  .pa-auth .auth-form{gap:10px}
  .pa-auth .pa-input input{min-height:44px}
  .pa-auth .auth-form .btn{min-height:46px}
  .pa-auth .auth-panel>.auth-switch{margin-top:12px}
  .pa-secure{padding-top:12px}
  .pa-form-inner{gap:12px}
  .pa-showcase{padding:30px 32px 26px;gap:26px}
  .pa-feats{margin-top:14px;padding-top:14px}
  body[data-page="login"]:not(.portal-body) .topbar{padding-top:18px}
  body[data-page="login"]:not(.portal-body) .page-footer{padding:12px 40px}
  .pa-back{top:28px}
  .pa-auth .auth-panel .form-grid{gap:8px 14px}
  .pa-auth .auth-panel .form-grid .field{margin-bottom:0;gap:5px}
  .pa-auth .auth-panel[data-auth-panel="signup"]>p:not(.auth-switch){display:none}
  .pa-form-inner:has([data-auth-panel="signup"]:not([hidden])) .pa-secure{display:none}
  .pa-auth .auth-panel .form-grid>.btn{min-height:46px}
}
@media (min-width:981px) and (max-height:700px){.pa-feats small{display:none}}
/* Admin / staff sign-in on short screens: one screen, no scroll. */
@media (max-height:760px){
  .portal-body .topbar{height:60px}
  .portal-login{min-height:0;padding:4px 16px}
  .portal-card{padding:22px 26px!important}
  .portal-card h2{margin:10px 0 4px;font-size:22px}
  .portal-card>p{margin-bottom:12px}
  .portal-card .auth-form{gap:10px}
  .portal-card .field{margin-bottom:0}
  .portal-card .field input{min-height:44px}
  .portal-note{margin-top:14px;padding-top:12px}
  .portal-body .page-footer{padding-top:10px;padding-bottom:10px}
}
@media (max-width:1180px){
  .pa-showcase{padding:40px 32px 34px}
  .pa-copy h1{font-size:34px}
  .pa-feats{grid-template-columns:1fr;gap:12px}
}
@media (max-width:980px){
  body[data-page="login"]:not(.portal-body) .topbar{position:static;left:auto;width:auto;padding:20px 20px 0}
  body[data-page="login"]:not(.portal-body) .page-footer{position:static;left:auto;width:auto;padding:18px 20px 24px}
  .pa-auth{grid-template-columns:1fr;min-height:0}
  .pa-form{grid-column:1;grid-row:1;padding:24px 20px 8px}
  .pa-back{top:-44px;right:20px}
  .pa-showcase{grid-column:1;grid-row:2;margin:16px;padding:32px 20px 28px;gap:34px}
  .pa-photo{width:auto;align-self:stretch}
  .pa-photo{margin:0 8px}
  .pa-copy{padding:0 4px}
}
@media (max-width:560px){
  body[data-page="login"]:not(.portal-body) .topbar{height:auto}
  .pa-auth .auth-panel h2{font-size:24px}
  .pa-auth .auth-panel .form-grid{grid-template-columns:1fr}
  .pa-copy h1{font-size:28px}
  .pa-chip{padding:8px 10px;gap:8px}
  .pa-chip-call{left:-8px;top:-18px}.pa-chip-lang{display:none}.pa-chip-done{right:-8px}
  .pa-wave{display:none}
}
@media (prefers-reduced-motion:reduce){.pa-wave i{animation:none;height:60%}.pa-chip{animation:none}}
