/* ============================================================
   AUTH — split-screen sign-in with branded side panel
   ============================================================ */
*{box-sizing:border-box}
html,body{margin:0;min-height:100vh}
body{font-family:ui-sans-serif,-apple-system,'Segoe UI','Inter',Roboto,sans-serif;background:#0b1120;color:#0f172a;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}

.auth-split{display:grid;grid-template-columns:minmax(420px,46%) 1fr;min-height:100vh}

/* --- left brand panel --- */
.auth-side{position:relative;overflow:hidden;background:linear-gradient(160deg,#151d3b 0%,#0e1730 45%,#0b1120 100%);color:#c3cbe2;display:flex;flex-direction:column;padding:44px 52px}
.auth-side::before{content:'';position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(139,92,246,.28),transparent 65%);top:-140px;right:-140px;pointer-events:none}
.auth-side::after{content:'';position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.16),transparent 65%);bottom:-120px;left:-100px;pointer-events:none}
.auth-brandrow{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.auth-logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#8b5cf6,#6d28d9);display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 6px 18px rgba(124,58,237,.45)}
.auth-logo svg{width:23px;height:23px;display:block}
.auth-brandname{font-size:16px;font-weight:800;color:#fff;letter-spacing:-.01em;line-height:1.15}
.auth-brandname small{display:block;font-size:9.5px;font-weight:700;color:#7e88ab;letter-spacing:.24em}
.auth-hero{margin:auto 0;position:relative;z-index:1;padding:40px 0}
.auth-mascot{width:190px;height:170px;margin-bottom:8px;filter:drop-shadow(0 18px 30px rgba(124,58,237,.35));animation:floaty 4s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.auth-hero h1{font-size:31px;font-weight:800;color:#fff;letter-spacing:-.03em;line-height:1.15;margin:0 0 12px}
.auth-hero h1 em{font-style:normal;background:linear-gradient(90deg,#a78bfa,#8b5cf6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.auth-hero p{font-size:14.5px;color:#9aa3c0;margin:0 0 26px;max-width:400px;line-height:1.65}
.auth-feats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px}
.auth-feats li{display:flex;align-items:center;gap:11px;font-size:13.5px;font-weight:500;color:#c3cbe2}
.auth-feats svg{width:17px;height:17px;flex-shrink:0;color:#a78bfa;background:rgba(139,92,246,.16);border-radius:8px;padding:3px;box-sizing:content-box}
.auth-copy{font-size:12px;color:#5d6787;position:relative;z-index:1}

/* --- right form panel --- */
.auth-panel{background:#f7f8fc;display:grid;place-items:center;padding:40px 24px}
.auth-card{background:#fff;border:1px solid #e7e9f2;border-radius:20px;padding:38px 36px;width:min(430px,94vw);box-shadow:0 2px 6px rgba(16,24,40,.04),0 24px 60px rgba(16,24,40,.09)}
.auth-cardtitle{font-size:21px;font-weight:800;letter-spacing:-.02em;margin:0 0 4px;color:#0f172a}
.auth-cardsub{margin:0 0 22px;color:#8891a8;font-size:13.5px}
label{display:block;font-weight:600;font-size:13px;margin:15px 0 5px;color:#45506b}
input{width:100%;padding:11px 13px;border:1px solid #d6dae8;border-radius:10px;font-size:15px;background:#fff;color:#0f172a;font-family:inherit;transition:border .15s,box-shadow .15s}
input:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.15)}
.btn{border:none;border-radius:11px;padding:12px 16px;font-size:14px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block;font-family:inherit}
.btn-primary{background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff;box-shadow:0 4px 14px rgba(124,58,237,.4),inset 0 1px 0 rgba(255,255,255,.25);transition:all .15s}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 7px 20px rgba(124,58,237,.5)}
.btn-block{width:100%;margin-top:22px}
.alert{padding:11px 14px;border-radius:10px;font-size:13.5px;margin-bottom:14px;line-height:1.5}
.alert-err{background:#fdeeee;border:1px solid #f5c6c6;color:#9f1d1d}
.alert-ok{background:#e8f8ee;border:1px solid #b7e6c6;color:#14532d}
.auth-foot{text-align:center;margin-top:18px;font-size:13.5px}
.auth-foot a{color:#7c3aed;text-decoration:none;font-weight:600}
.auth-foot a:hover{text-decoration:underline}

@media(max-width:900px){
  .auth-split{grid-template-columns:1fr}
  .auth-side{display:none}
  .auth-panel{min-height:100vh}
}
