@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

:root{ --radius:18px; --radius-sm:10px; }
html.dark{
  --bg:#121214; --bg-alt:#16161a; --surface:#18181c; --surface2:#222228;
  --border:#27272e; --text:#ffffff; --text-dim:#9b9ba8;
  --primary:#e8213a; --primary2:#ff3b53; --primary-dim:rgba(232, 33, 58, 0.12);
  --success:#e8213a; --warning:#f5a623; --info:#38bdf8; --purple:#b366ff;
  --shadow:0 16px 48px rgba(0,0,0,0.45); --glow:0 0 35px rgba(232,33,58,0.25);
}
html.light{
  --bg:#f8f7f5; --bg-alt:#edebe6; --surface:#ffffff; --surface2:#f1efe9;
  --border:#e2dfd7; --text:#141412; --text-dim:#6b6964;
  --primary:#e8213a; --primary2:#ff3b53; --primary-dim:#fef2f2;
  --success:#e8213a; --warning:#d97706; --info:#0284c7; --purple:#9333ea;
  --shadow:0 10px 30px rgba(0,0,0,0.06); --glow:0 0 30px rgba(232,33,58,0.12);
}
*{box-sizing:border-box; margin:0; padding:0;}
body{font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,sans-serif; background:var(--bg); color:var(--text); min-height:100vh; -webkit-font-smoothing:antialiased;}
h1,h2,h3,h4,.brand,.page-title{font-family:'Plus Jakarta Sans',sans-serif; letter-spacing:-0.5px;}
code,pre,.mono,.badge,.num,.stat-box .num,.step-label,.auth-eyebrow,th,.order-id{font-family:'IBM Plex Mono',monospace;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
::-webkit-scrollbar{width:8px; height:8px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--border); border-radius:10px;}
::-webkit-scrollbar-thumb:hover{background:var(--primary);}
.ic{width:1.15em; height:1.15em; display:inline-block; vertical-align:-0.15em;}

.btn{display:inline-flex; align-items:center; gap:8px; padding:11px 22px; border-radius:9999px; border:1px solid transparent; font-weight:700; font-size:13.5px; transition:.2s ease; white-space:nowrap;}
.btn-primary{background:var(--primary); color:#fff; box-shadow:0 4px 18px rgba(232,33,58,0.3);}
.btn-primary:hover{background:var(--primary2); transform:translateY(-2px); box-shadow:0 8px 24px rgba(232,33,58,0.4);}
.btn-outline{background:transparent; border:1.5px solid var(--border); color:var(--text); border-radius:9999px;}
.btn-outline:hover{border-color:var(--primary); color:var(--primary); background:var(--primary-dim);}
.btn-ghost{background:var(--surface2); color:var(--text); border-radius:9999px;}
.btn-ghost:hover{background:var(--primary-dim); color:var(--primary2);}
.btn-sm{padding:7px 15px; font-size:12px; border-radius:9999px;}
.btn-block{width:100%; justify-content:center;}
.btn-danger{background:var(--primary-dim); color:var(--primary2); border:1px solid var(--primary); border-radius:9999px;}
.btn-icon{width:38px; height:38px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--surface2); border:1px solid var(--border); color:var(--text); font-size:15px; transition:.2s;}
.btn-icon:hover{border-color:var(--primary); color:var(--primary); background:var(--primary-dim);}

.field{margin-bottom:18px;}
.field label{display:block; font-size:12.5px; font-weight:700; margin-bottom:7px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.5px;}
.input{width:100%; padding:12px 16px; border-radius:12px; border:1.5px solid var(--border); background:var(--surface2); color:var(--text); font-family:'Plus Jakarta Sans',sans-serif; font-size:13.5px; outline:none; transition:.2s ease;}
.input:focus{border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-dim);}
textarea.input{resize:vertical; min-height:85px;}

.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow);}
.badge{display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:9999px; font-size:11px; font-weight:700; letter-spacing:0.3px;}
.badge-wait{background:rgba(245,166,35,0.12); color:#f5a623; border:1px solid rgba(245,166,35,0.3);}
.badge-confirm{background:rgba(56,189,248,0.12); color:#38bdf8; border:1px solid rgba(56,189,248,0.3);}
.badge-shop{background:rgba(179,102,255,0.12); color:#b366ff; border:1px solid rgba(179,102,255,0.3);}
.badge-ship{background:rgba(232,33,58,0.12); color:#e8213a; border:1px solid rgba(232,33,58,0.3);}
.badge-done{background:rgba(232,33,58,0.15); color:#e8213a; border:1px solid rgba(232,33,58,0.35);}
.badge-cancel{background:rgba(156,163,175,0.12); color:#9ca3af; border:1px solid rgba(156,163,175,0.3);}

.flex{display:flex; align-items:center;}
.between{justify-content:space-between;}
.gap8{gap:8px;} .gap10{gap:10px;} .gap14{gap:14px;}
.grid{display:grid; gap:20px;}
.container{max-width:1200px; margin:0 auto; padding:0 24px;}

.brand{display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; font-family:'IBM Plex Mono',monospace;}
.brand .logo-box{width:34px; height:34px; border-radius:10px; background:var(--primary-dim); border:1px solid rgba(232,33,58,0.3); display:flex; align-items:center; justify-content:center;}
.brand .logo-box img{width:100%; height:100%; object-fit:contain;}

.navbar{position:sticky; top:0; z-index:40; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); background:color-mix(in srgb, var(--bg) 85%, transparent); border-bottom:1px solid var(--border);}
.navbar-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:1200px; margin:0 auto;}
.nav-links{display:flex; gap:26px; font-size:13.5px; font-weight:600; color:var(--text-dim);}
.nav-links a:hover{color:var(--primary);}

.hero{position:relative; overflow:hidden; padding:90px 24px 70px;}
.hero::before{content:''; position:absolute; width:500px; height:500px; background:radial-gradient(circle, var(--primary) 0%, transparent 70%); opacity:.15; top:-200px; right:-100px; border-radius:50%;}
.hero-inner{position:relative; max-width:1200px; margin:0 auto; text-align:center;}
.pill{display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border-radius:9999px; background:var(--primary-dim); color:var(--primary2); font-size:12.5px; font-weight:700; margin-bottom:22px; border:1px solid rgba(232,33,58,0.35); font-family:'IBM Plex Mono',monospace;}
.hero h1{font-size:48px; font-weight:800; line-height:1.2; margin-bottom:18px; letter-spacing:-1.2px;}
.hero h1 span{color:var(--primary);}
.hero p{color:var(--text-dim); font-size:16px; max-width:640px; margin:0 auto 32px; line-height:1.75;}
.hero-cta{display:flex; gap:14px; justify-content:center; flex-wrap:wrap;}

.stats-strip{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:1000px; margin:60px auto 0;}
.stat-box{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:22px; text-align:center; transition:.2s ease;}
.stat-box:hover{border-color:var(--primary); transform:translateY(-3px);}
.stat-box .num{font-size:26px; font-weight:800; color:var(--primary);}
.stat-box .lbl{font-size:12px; color:var(--text-dim); margin-top:5px;}

.section{padding:70px 24px;}
.section-head{text-align:center; max-width:640px; margin:0 auto 46px;}
.section-head .tag{color:var(--primary); font-weight:700; font-size:12px; letter-spacing:1px; text-transform:uppercase; font-family:'IBM Plex Mono',monospace;}
.section-head h2{font-size:32px; font-weight:800; margin:10px 0 12px; letter-spacing:-0.8px;}
.section-head p{color:var(--text-dim); font-size:15px; line-height:1.7;}

.feat-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; max-width:1200px; margin:0 auto;}
.feat-card{background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:28px; transition:.25s ease;}
.feat-card:hover{transform:translateY(-6px); border-color:var(--primary); box-shadow:var(--glow);}
.feat-icon{width:48px; height:48px; border-radius:12px; background:var(--primary-dim); color:var(--primary2); display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:18px;}

.steps-wrap{display:grid; grid-template-columns:repeat(5,1fr); gap:16px; max-width:1200px; margin:0 auto;}
.step-card{text-align:center; padding:20px 14px;}
.step-num{width:40px; height:40px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; margin:0 auto 14px; font-family:'IBM Plex Mono',monospace; font-size:14px;}

.cta-box{max-width:1000px; margin:0 auto; background:var(--surface); border:1px solid var(--border); border-radius:24px; padding:50px; text-align:center; color:var(--text);}
footer{border-top:1px solid var(--border); padding:36px 24px; text-align:center; color:var(--text-dim); font-size:12.5px;}

.auth-wrap{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; position:relative; overflow:hidden;}
.auth-wrap::before{content:''; position:absolute; width:600px; height:600px; background:radial-gradient(circle, var(--primary) 0%, transparent 65%); opacity:.15; top:-250px; left:-150px; border-radius:50%;}
.auth-card{width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:36px; box-shadow:var(--shadow); position:relative; z-index:2;}
.auth-tabs{display:flex; background:var(--surface2); border-radius:12px; padding:4px; margin-bottom:26px;}
.auth-tab{flex:1; text-align:center; padding:10px; border-radius:9px; font-weight:700; font-size:13.5px; color:var(--text-dim); transition:.2s;}
.auth-tab.active{background:var(--primary); color:#fff;}
.role-select{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px;}
.role-opt{border:1.5px solid var(--border); border-radius:12px; padding:14px; text-align:center; cursor:pointer; transition:.2s;}
.role-opt.active{border-color:var(--primary); background:var(--primary-dim); color:var(--primary2);}
.demo-hint{background:var(--surface2); border:1px dashed var(--border); border-radius:12px; padding:12px 14px; font-size:12px; color:var(--text-dim); margin-top:16px; line-height:1.6;}
.theme-toggle-floating{position:fixed; top:20px; right:20px; z-index:50;}

.alert{padding:12px 18px; border-radius:12px; font-size:13px; margin-bottom:18px; border-left:4px solid var(--primary); background:var(--surface2); color:var(--text); line-height:1.6;}
.alert-success{background:var(--primary-dim); border-left-color:var(--primary); color:var(--primary2);}
.alert-error{background:rgba(239,68,68,0.12); border-left-color:#ef4444; color:#ef4444;}

.shell{display:flex; min-height:100vh;}
.sidebar{width:260px; background:var(--bg-alt); border-right:1px solid var(--border); padding:22px 16px; position:fixed; top:0; left:0; bottom:0; display:flex; flex-direction:column; z-index:30; transition:.3s;}
.sidebar-brand{padding:0 8px 20px; border-bottom:1px solid var(--border); margin-bottom:18px;}
.side-nav{flex:1; display:flex; flex-direction:column; gap:5px; overflow-y:auto;}
.side-link{display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:9999px; color:var(--text-dim); font-size:13.5px; font-weight:600; transition:.2s ease;}
.side-link:hover{background:var(--surface2); color:var(--text);}
.side-link.active{background:var(--primary); color:#fff; box-shadow:0 4px 14px rgba(232,33,58,0.3);}
.side-foot{border-top:1px solid var(--border); padding-top:14px; margin-top:10px;}
.user-chip{display:flex; align-items:center; gap:10px; padding:10px; border-radius:14px; background:var(--surface2); margin-bottom:10px; border:1px solid var(--border);}
.avatar{width:36px; height:36px; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13.5px; flex-shrink:0;}
.main{flex:1; margin-left:260px; min-height:100vh; display:flex; flex-direction:column;}
.topbar{display:flex; align-items:center; justify-content:space-between; padding:18px 28px; border-bottom:1px solid var(--border); background:var(--bg); position:sticky; top:0; z-index:20; backdrop-filter:blur(12px);}
.content{padding:28px; flex:1;}
.hamburger{display:none;}

.page-title{font-size:24px; font-weight:800; letter-spacing:-0.6px;}
.page-sub{color:var(--text-dim); font-size:13px;}

.kpi-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:26px;}
.kpi{background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:22px; transition:.25s ease;}
.kpi:hover{border-color:var(--primary); transform:translateY(-3px); box-shadow:var(--glow);}
.kpi .ic-wrap{width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:19px; margin-bottom:14px; background:var(--primary-dim); color:var(--primary2);}
.kpi .num{font-size:26px; font-weight:800; font-family:'IBM Plex Mono',monospace;}
.kpi .lbl{font-size:12px; color:var(--text-dim); margin-top:4px;}

.order-card{background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:22px; margin-bottom:16px; transition:.2s ease;}
.order-card:hover{border-color:var(--primary);}
.order-top{display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:10px; margin-bottom:14px;}
.order-id{font-weight:700; font-size:14px; font-family:'IBM Plex Mono',monospace;}
.order-meta{font-size:12px; color:var(--text-dim); margin-top:3px;}

.stepper{display:flex; align-items:center; margin:18px 0;}
.step-dot-wrap{display:flex; flex-direction:column; align-items:center; flex:1; position:relative;}
.step-dot{width:26px; height:26px; border-radius:50%; background:var(--surface2); border:2px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--text-dim); z-index:2; font-family:'IBM Plex Mono',monospace;}
.step-dot.done{background:var(--primary); border-color:var(--primary); color:#fff;}
.step-dot.active{background:var(--primary2); border-color:var(--primary2); color:#fff; box-shadow:0 0 0 4px var(--primary-dim);}
.step-line{position:absolute; top:13px; left:-50%; width:100%; height:2px; background:var(--border); z-index:1;}
.step-line.done{background:var(--primary);}
.step-dot-wrap:first-child .step-line{display:none;}
.step-label{font-size:9.5px; color:var(--text-dim); margin-top:6px; text-align:center;}

.table-wrap{overflow-x:auto;}
table{width:100%; border-collapse:collapse; font-size:13px;}
th{text-align:left; padding:12px 14px; color:var(--text-dim); font-size:11px; text-transform:uppercase; border-bottom:1px solid var(--border); letter-spacing:0.5px;}
td{padding:14px; border-bottom:1px solid var(--border);}
tr:hover td{background:var(--surface2);}

.tabs-row{display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap;}
.tab-chip{padding:8px 18px; border-radius:9999px; background:var(--surface2); font-size:12.5px; font-weight:700; border:1px solid var(--border); color:var(--text-dim); transition:.2s ease;}
.tab-chip:hover{color:var(--text); border-color:var(--primary);}
.tab-chip.active{background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 4px 14px rgba(232,33,58,0.3);}

.item-row{display:grid; grid-template-columns:2fr 70px 1.5fr 36px; gap:8px; margin-bottom:10px; align-items:center;}
.price-box{background:var(--surface2); border:1px dashed var(--border); border-radius:12px; padding:16px; margin-top:10px;}
.price-row{display:flex; justify-content:space-between; font-size:13.5px; padding:5px 0; color:var(--text-dim);}
.price-row.total{border-top:1px solid var(--border); margin-top:6px; padding-top:10px; font-weight:700; color:var(--text); font-size:15px;}

.zone-opts,.cat-opts{display:grid; grid-template-columns:repeat(3,1fr); gap:10px;}
.zone-opt,.cat-opt{border:1.5px solid var(--border); border-radius:10px; padding:12px 8px; text-align:center; font-size:12.5px; cursor:pointer;}
.zone-opt.active,.cat-opt.active{border-color:var(--primary); background:var(--primary-dim); color:var(--primary2); font-weight:700;}
.cat-opt .ic{font-size:18px; display:block; margin:0 auto 5px;}

.slot-opts{display:grid; grid-template-columns:repeat(3,1fr); gap:8px;}
.slot-opt{border:1.5px solid var(--border); border-radius:9px; padding:8px; text-align:center; font-size:12px; cursor:pointer;}
.slot-opt.active{border-color:var(--primary); background:var(--primary-dim); color:var(--primary2); font-weight:700;}

.bar-wrap{display:flex; flex-direction:column; gap:12px;}
.bar-row{display:flex; align-items:center; gap:10px; font-size:12.5px;}
.bar-track{flex:1; height:10px; background:var(--surface2); border-radius:6px; overflow:hidden;}
.bar-fill{height:100%; border-radius:6px; background:linear-gradient(90deg,var(--primary),var(--primary2));}
.empty-state{text-align:center; padding:60px 20px; color:var(--text-dim);}
.empty-state .ic{font-size:40px; margin-bottom:14px; color:var(--primary);}

@media(max-width:900px){
  .feat-grid,.stats-strip,.kpi-grid{grid-template-columns:1fr 1fr;}
  .steps-wrap{grid-template-columns:repeat(2,1fr);}
  .sidebar{transform:translateX(-100%);}
  .sidebar.open{transform:translateX(0);}
  .main{margin-left:0;}
  .hamburger{display:flex;}
  .hero h1{font-size:34px;}
  .nav-links{display:none;}
}
@media(max-width:600px){
  .feat-grid,.steps-wrap,.stats-strip,.kpi-grid{grid-template-columns:1fr;}
  .item-row{grid-template-columns:1fr;}
  .cat-opts,.zone-opts,.slot-opts{grid-template-columns:1fr 1fr;}
}

/* =========================================
   JASTIPPINTAR — AUTHENTICATION PAGES
   Clean, restrained, responsive interface
========================================= */

.auth-page {
    --auth-accent: #e8213a;
    --auth-accent-hover: #cf1930;
    --auth-panel: #111111;
    --auth-line: #303036;
    --auth-muted: #85858f;

    min-height: 100vh;
    background: var(--bg);
}

html.light .auth-page {
    --auth-panel: #f7f5f5;
    --auth-line: #e6dfe0;
    --auth-muted: #777078;
}

.auth-page a {
    transition: color .18s ease;
}

.auth-page a:hover {
    color: var(--primary2);
}

.auth-theme {
    position: fixed;
    z-index: 100;
    top: 20px;
    right: 22px;
}

.auth-theme .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
}

.auth-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    justify-content: center;
}


/* ============================================================
   LEFT ASIDE: FULL HALF-SCREEN CONTINUOUS CARTOON ANIMATION
   - 1 single unified animation filling 100% of the half screen
   - Edge-to-edge, zero padding margin, immersive canvas
   ============================================================ */
.auth-aside {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    padding: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background: #090c14;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Fullscreen SVG Canvas Container */
.auth-full-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.auth-full-canvas svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Top Floating Brand Logo */
.auth-brand-float {
    position: absolute;
    top: 32px;
    left: 36px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 10px;
    background: rgba(18, 18, 22, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.auth-brand-float:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}
.auth-brand-logo-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary-dim);
    border: 1px solid rgba(232, 33, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-brand-logo-box img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.auth-brand-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.3px;
    color: #ffffff;
}

/* Bottom Floating Live Telemetry HUD Card */
.auth-live-card-floating {
    position: absolute;
    bottom: 32px;
    left: 36px;
    right: 36px;
    z-index: 10;
    background: rgba(18, 18, 24, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(232, 33, 58, 0.25);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.auth-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.auth-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: var(--primary-dim);
    color: var(--primary);
    border: 1px solid rgba(232, 33, 58, 0.3);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.auth-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: authPulseDot 1.5s ease infinite;
}
@keyframes authPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.auth-live-speed {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-dim);
}
.auth-live-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.auth-live-sub {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 12px;
}
.auth-live-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-live-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 8px;
}
.auth-live-chip .chip-k {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}
.auth-live-chip .chip-v {
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auth-live-chip:first-child .chip-v {
    color: var(--primary);
    font-family: 'IBM Plex Mono', monospace;
}

/* ============================================================
   SVG CARTOON ANIMATION KEYFRAMES (Full Half-Screen)
   ============================================================ */

/* Road Surface Dashes */
@keyframes authRoadDashFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 40; }
}
.auth-road-dash-line {
    stroke-dasharray: 22 18;
    animation: authRoadDashFlow 0.5s linear infinite;
}

/* Bike Idle Suspension Bobbing */
@keyframes authBikeIdleBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3.5px) rotate(-0.5deg); }
}
.auth-motor-rig {
    transform-origin: 350px 710px;
    animation: authBikeIdleBob 1.25s ease-in-out infinite;
}

/* Hand-to-Hand Paper Bag Transfer */
@keyframes authHandHandoffMove {
    0%, 20% { transform: translate(0, 0); }
    45%, 70% { transform: translate(-38px, 4px) rotate(-3deg); }
    88%, 100% { transform: translate(-64px, 6px) rotate(0deg); }
}
.auth-bag-transfer {
    animation: authHandHandoffMove 4.2s ease-in-out infinite alternate;
}

/* Customer Arm Reaching to Receive Bag */
@keyframes authCustomerReachMove {
    0%, 25% { transform: rotate(0deg); }
    55%, 100% { transform: rotate(-16deg); }
}
.auth-customer-arm-receive {
    transform-origin: 168px 670px;
    animation: authCustomerReachMove 4.2s ease-in-out infinite alternate;
}

/* Customer Waving Arm */
@keyframes authCustomerWaveMove {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}
.auth-customer-arm-wave {
    transform-origin: 138px 656px;
    animation: authCustomerWaveMove 1.35s ease-in-out infinite;
}

/* Customer Celebration Speech Bubble */
@keyframes authSpeechBubbleFloat {
    0%, 20% { opacity: 0; transform: translateY(8px) scale(0.85); }
    35%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    95%, 100% { opacity: 0; transform: translateY(-4px) scale(0.95); }
}
.auth-bubble-speech {
    transform-origin: 145px 610px;
    animation: authSpeechBubbleFloat 4.2s ease-in-out infinite alternate;
}

/* Drifting Clouds */
@keyframes authCloudDriftSlow {
    0% { transform: translateX(-35px); }
    100% { transform: translateX(35px); }
}
.auth-cloud-1 { animation: authCloudDriftSlow 15s ease-in-out infinite alternate; }
.auth-cloud-2 { animation: authCloudDriftSlow 20s ease-in-out infinite alternate-reverse; }

/* Twinkling Stars */
@keyframes authStarGlint {
    0%, 100% { opacity: 0.25; transform: scale(0.75); }
    50% { opacity: 1; transform: scale(1.25); }
}
.auth-star-glint {
    animation: authStarGlint 2.6s ease-in-out infinite alternate;
}

/* Headlight Glow */
@keyframes authHeadlightGlow {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 0.95; }
}
.auth-headlight-cone {
    animation: authHeadlightGlow 1.8s ease-in-out infinite alternate;
}

/* Speed Streaks */
@keyframes authSpeedStreakFlow {
    0% { transform: translateX(20px); opacity: 0; }
    40% { opacity: 0.6; }
    100% { transform: translateX(-40px); opacity: 0; }
}
.auth-speed-streak-1 { animation: authSpeedStreakFlow 1.1s ease-in-out infinite; }
.auth-speed-streak-2 { animation: authSpeedStreakFlow 1.4s ease-in-out infinite 0.4s; }

/* Exhaust Puffs */
@keyframes authExhaustPuffMove {
    0% { transform: translate(0, 0) scale(0.6); opacity: 0.7; }
    100% { transform: translate(-24px, -12px) scale(1.8); opacity: 0; }
}
.auth-puff-1 { animation: authExhaustPuffMove 1.2s ease-out infinite; }
.auth-puff-2 { animation: authExhaustPuffMove 1.2s ease-out infinite 0.45s; }

/* Store Item Floating Delivery Indicator */
@keyframes authOrderTagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.auth-order-ready-tag {
    animation: authOrderTagFloat 2.8s ease-in-out infinite;
}

.auth-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.auth-brand:hover {
    color: var(--text);
}

.auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--auth-accent);
    border-radius: 10px;
}

.auth-brand-icon svg {
    width: 22px;
    height: 22px;
}

.brand-accent {
    color: var(--primary2);
}

/* Right form area */

.auth-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 76px 28px 65px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 390px;
    margin: auto;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 35px;
}

.auth-heading {
    margin-bottom: 27px;
}

.auth-heading .auth-eyebrow {
    margin-bottom: 10px;
}

.auth-heading h2 {
    margin-bottom: 9px;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.8px;
}

.auth-heading > p {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
}

/* Tabs */

.auth-page .auth-tabs {
    gap: 4px;
    margin-bottom: 27px;
    padding: 4px;
    border: 1px solid var(--auth-line);
    border-radius: 9px;
    background: var(--surface);
}

.auth-page .auth-tab {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.auth-page .auth-tab:hover {
    color: var(--text);
}

.auth-page .auth-tab.active {
    background: var(--surface2);
    color: var(--text);
}

/* Inputs */

.auth-form .field {
    margin-bottom: 19px;
}

.auth-page .field label {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.auth-page .input {
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    transition: border-color .18s ease;
}

.auth-page .input::placeholder {
    color: var(--auth-muted);
    opacity: .85;
}

.auth-page .input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.auth-password {
    position: relative;
}

.auth-password .input {
    padding-right: 95px;
}

.auth-show-password {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px 0 5px 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
}

.auth-show-password:hover {
    color: var(--primary2);
}

/* Main action */

.auth-page .auth-submit {
    display: flex;
    justify-content: space-between;
    min-height: 46px;
    margin-top: 25px;
    padding: 12px 15px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    box-shadow: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background .18s ease;
}

.auth-page .auth-submit:hover {
    transform: none;
    background: var(--auth-accent-hover);
}

.auth-submit span {
    font-size: 17px;
}

/* Footer and feedback */

.auth-bottom {
    margin-top: 25px;
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
}

.auth-bottom a {
    margin-left: 4px;
    color: var(--primary2);
    font-weight: 600;
}

.auth-back {
    display: block;
    width: fit-content;
    margin: 27px auto 0;
    color: var(--text-dim);
    font-size: 11px;
}

.auth-page .alert {
    margin-bottom: 20px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.7;
}

.auth-copyright {
    position: absolute;
    bottom: 20px;
    left: 28px;
    right: 28px;
    color: var(--auth-muted);
    font-size: 10px;
    text-align: center;
}

/* Register-specific layout */

.auth-main-register {
    padding-top: 48px;
    padding-bottom: 65px;
}

.auth-form-register {
    max-width: 420px;
}

.auth-main-register .auth-heading {
    margin-bottom: 20px;
}

.auth-main-register .auth-heading h2 {
    font-size: 27px;
}

.auth-main-register .auth-tabs {
    margin-bottom: 21px;
}

.auth-main-register .auth-form .field {
    margin-bottom: 15px;
}

.auth-main-register .auth-submit {
    margin-top: 22px;
}

.auth-role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-role-option {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 65px;
    margin: 0 !important;
    padding: 12px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .18s ease;
}

.auth-role-option:hover {
    border-color: var(--primary);
}

.auth-role-option.selected {
    border-color: var(--primary);
    background: var(--primary-dim);
}

.auth-role-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.auth-role-option input:focus-visible
    + .auth-role-indicator {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.auth-role-indicator {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border: 1px solid var(--auth-muted);
    border-radius: 50%;
}

.auth-role-option.selected .auth-role-indicator {
    border: 4px solid var(--primary);
    background: var(--surface);
}

.auth-role-copy {
    min-width: 0;
}

.auth-role-copy strong {
    display: block;
    margin: 0 0 4px;
    color: var(--text);
    font-size: 12px;
}

.auth-role-copy small {
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}

.auth-field-help {
    margin-top: 7px;
    color: var(--text-dim);
    font-size: 10px;
    line-height: 1.6;
}

.auth-field-help.auth-match {
    color: var(--success);
}

.auth-field-help.auth-mismatch {
    color: #ef4444;
}

.auth-admin-code[hidden] {
    display: none !important;
}

/* Responsive */

@media (max-width: 900px) {
    .auth-layout {
        display: block;
    }

    .auth-aside {
        display: none !important;
    }

    .auth-main,
    .auth-main-register {
        min-height: 100vh;
        padding: 70px 24px 50px;
    }

    .auth-form-wrap,
    .auth-form-register {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-heading h2 {
        font-size: 27px;
    }

    .auth-copyright {
        bottom: 17px;
    }

    .auth-theme {
        top: 15px;
        right: 16px;
    }
}

@media (max-width: 360px) {
    .auth-main,
    .auth-main-register {
        padding-right: 17px;
        padding-left: 17px;
    }

    .auth-role-option {
        gap: 7px;
        padding: 9px;
    }

    .auth-role-copy small {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Google sign-in */
.google-auth-wrap{margin:4px 0 22px}.auth-divider{display:flex;align-items:center;gap:14px;color:var(--text-dim);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:18px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--border)}.google-signin{display:flex;justify-content:center;min-height:44px}.google-setup-note{font-size:12px;color:var(--text-dim);text-align:center;padding:12px;border:1px dashed var(--border);border-radius:12px;line-height:1.6}
.auth-form-wrap{max-width:460px}.auth-heading h2{font-size:clamp(28px,3vw,38px);letter-spacing:-1.3px}.auth-heading p{line-height:1.7}.auth-form .input{min-height:50px;border-radius:14px}.auth-submit{min-height:52px;border-radius:14px;letter-spacing:.01em}.auth-tabs{border-radius:14px;padding:5px}.auth-tab{border-radius:10px}.auth-main{background:radial-gradient(ellipse at 80% 12%,rgba(232,33,58,.08),transparent 42%),var(--bg)}
.driver-page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:4px 0 24px}.driver-page-intro h2{font-size:26px;letter-spacing:-.8px;margin:5px 0}.driver-page-intro p{font-size:13px;color:var(--text-dim)}.driver-kicker{font:700 10px 'IBM Plex Mono',monospace;letter-spacing:1.3px;color:var(--primary)}
.driver-order-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px 0;border-bottom:1px solid var(--border)}.driver-order-meta div{display:flex;flex-direction:column;gap:5px;min-width:0}.driver-order-meta small,.driver-profile-lines small{font-size:9px;letter-spacing:.8px;color:var(--text-dim);font-weight:800}.driver-order-meta b{font-size:12px;overflow-wrap:anywhere}.driver-address{font-size:12px;color:var(--text-dim);padding:14px 0}.driver-card-actions{display:flex;gap:9px;flex-wrap:wrap}
.driver-table-card{padding:0;overflow:hidden}.driver-table-scroll{overflow-x:auto}.driver-history-table{width:100%;border-collapse:collapse;min-width:720px}.driver-history-table th,.driver-history-table td{text-align:left;padding:15px 17px;border-bottom:1px solid var(--border);font-size:11px}.driver-history-table th{font-size:9px;letter-spacing:.8px;color:var(--text-dim);text-transform:uppercase}
.driver-profile-grid{display:grid;grid-template-columns:minmax(260px,1fr) 1.4fr;gap:18px}.driver-profile-card{text-align:center}.driver-profile-avatar{width:66px;height:66px;border-radius:22px;background:var(--primary-dim);border:1px solid rgba(232,33,58,.3);color:var(--primary);display:grid;place-items:center;font-size:22px;font-weight:800;margin:0 auto 14px}.driver-profile-card h3{font-size:19px}.driver-profile-card>p{font-size:12px;color:var(--text-dim);margin:5px 0 20px}.driver-profile-lines{border-top:1px solid var(--border);text-align:left;margin:0 0 18px}.driver-profile-lines div{padding:12px 0;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:5px}.driver-profile-lines b{font-size:12px;overflow-wrap:anywhere}.driver-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.driver-profile-stats div{background:var(--surface2);border:1px solid var(--border);border-radius:14px;padding:18px 12px;display:flex;flex-direction:column;gap:8px}.driver-profile-stats strong{font-size:20px;color:var(--primary);overflow-wrap:anywhere}.driver-profile-stats small{font-size:10px;color:var(--text-dim)}
@media(max-width:700px){.driver-page-intro{align-items:flex-start;flex-direction:column}.driver-order-meta{grid-template-columns:1fr 1fr}.driver-profile-grid{grid-template-columns:1fr}.driver-profile-stats{grid-template-columns:1fr}.driver-card-actions .btn{flex:1;justify-content:center}}

/* =========================================================
   JASTIPPINTAR AUTH — PREMIUM LOGIN REFINEMENT
   Scoped to authentication pages; no changes to app screens.
========================================================= */
.auth-page {
  --auth-accent: #e8213a;
  --auth-ink: #17171b;
  --auth-muted: #777780;
  background: #f6f5f3;
  color: var(--auth-ink);
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
}
html.dark .auth-page { background:#0b0d12; color:#f4f4f5; }
.auth-layout { grid-template-columns:minmax(300px, 36%) minmax(0,1fr); min-height:100svh; }
.auth-aside { max-width:none; width:100%; min-height:100svh; border:0; position:sticky; top:0; height:100svh; }
.auth-main {
  min-width:0; min-height:100svh; position:relative;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding:76px clamp(24px,6vw,92px) 68px;
  background:
    radial-gradient(ellipse at 82% 12%,rgba(232,33,58,.075),transparent 35%),
    radial-gradient(ellipse at 10% 92%,rgba(232,33,58,.035),transparent 34%),
    #f8f7f5;
}
html.dark .auth-main {
  background:
    radial-gradient(ellipse at 82% 12%,rgba(232,33,58,.12),transparent 35%),
    radial-gradient(ellipse at 10% 92%,rgba(232,33,58,.055),transparent 34%),
    #101116;
}
.auth-form-wrap {
  width:min(100%,460px); max-width:460px; margin:auto; padding:0;
  animation:auth-rise .55s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes auth-rise { from {opacity:0;transform:translateY(12px)} to {opacity:1;transform:translateY(0)} }
.auth-mobile-brand { display:flex; align-items:center; gap:12px; margin:0 0 48px; color:var(--auth-ink); font-size:19px; font-weight:800; letter-spacing:-.7px; }
html.dark .auth-mobile-brand { color:#fff; }
.auth-mobile-brand .auth-brand-icon { width:44px;height:44px;border-radius:13px;background:#e8213a;display:grid;place-items:center;box-shadow:0 8px 22px rgba(232,33,58,.2); }
.auth-mobile-brand .auth-brand-icon img { width:27px!important;height:27px!important; }
.auth-heading { margin:0 0 27px; }
.auth-heading .auth-eyebrow { display:inline-flex; align-items:center; gap:9px; margin:0 0 13px; color:#e8213a; font-size:10px; font-weight:800; letter-spacing:1.65px; }
.auth-heading .auth-eyebrow:before { content:""; width:22px;height:2px;background:#e8213a;border-radius:2px; }
.auth-heading h2 { margin:0 0 10px; font-size:clamp(30px,3vw,39px); line-height:1.16; letter-spacing:-1.8px; font-weight:800; color:#17171b; }
html.dark .auth-heading h2 { color:#f7f7f8; }
.auth-heading>p { color:#777780; font-size:13px; line-height:1.75; }
html.dark .auth-heading>p { color:#a1a1aa; }
.auth-page .auth-tabs { display:grid;grid-template-columns:1fr 1fr; gap:5px; margin:0 0 23px; padding:5px; border:1px solid #e8e5e2; border-radius:13px; background:#eeece9; }
html.dark .auth-page .auth-tabs { background:#191a20;border-color:#2b2c34; }
.auth-page .auth-tab { min-height:43px; border-radius:99px; font-size:12px; font-weight:700; color:#777780; }
.auth-page .auth-tab.active { background:#fff; color:#1c1c20; box-shadow:0 2px 7px rgba(20,20,20,.06); }
html.dark .auth-page .auth-tab.active { background:#2a2b33;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2); }
.google-auth-wrap { margin:0 0 22px; }
.google-auth-wrap .auth-divider { display:flex;align-items:center;gap:13px;margin:0 0 14px;color:#92929a;font-size:10px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase; }
.google-auth-wrap .auth-divider:before,.google-auth-wrap .auth-divider:after { content:"";height:1px;flex:1;background:#e5e2df; }
html.dark .google-auth-wrap .auth-divider:before,html.dark .google-auth-wrap .auth-divider:after { background:#30313a; }
.google-signin { display:flex;justify-content:center;min-height:44px; }
.google-signin iframe { max-width:100%; }
.google-setup-note { padding:12px 14px;border:1px solid #f1d4d8;border-radius:11px;background:#fff5f6;color:#9b3341;font-size:11px;line-height:1.65; }
html.dark .google-setup-note { background:#28171c;border-color:#4a252d;color:#f2a6b1; }
.auth-form .field { margin-bottom:17px; }
.auth-page .field label { display:block;margin-bottom:8px;color:#34343a;font-size:11px;font-weight:750;letter-spacing:.15px; }
html.dark .auth-page .field label { color:#dedee2; }
.auth-page .input { width:100%;min-height:52px;padding:14px 16px;border:1px solid #e3e0dd;border-radius:11px;background:#fff;color:#202026;font-family:inherit;font-size:13px;box-shadow:0 1px 2px rgba(0,0,0,.015); }
html.dark .auth-page .input { background:#17181e;border-color:#33343d;color:#f5f5f6; }
.auth-page .input::placeholder { color:#a1a1a8; }
.auth-page .input:focus { border-color:#e8213a;box-shadow:0 0 0 4px rgba(232,33,58,.10);outline:0; }
.auth-password .input { padding-right:100px; }
.auth-show-password { right:14px;font-family:inherit;font-size:11px; }
.auth-page .auth-submit { min-height:53px;margin-top:8px;padding:0 18px;border-radius:11px;background:linear-gradient(110deg,#ef263f,#d91832);box-shadow:0 9px 20px rgba(232,33,58,.17);font-family:inherit;font-size:13px;font-weight:800; }
.auth-page .auth-submit:hover { background:linear-gradient(110deg,#f3334b,#c9152d);box-shadow:0 11px 24px rgba(232,33,58,.23);transform:translateY(-1px); }
.auth-submit span { font-size:14px; }
.auth-bottom { margin-top:25px;color:#85858d;font-size:12px; }
.auth-bottom a { color:#e8213a;font-weight:800; }
.auth-back { margin:30px auto 0;color:#85858d;font-size:11px; }
.auth-back:hover { color:#e8213a; }
.auth-page .alert { padding:12px 14px;border-radius:10px; }
.auth-copyright { position:absolute;bottom:20px;left:24px;right:24px;color:#a0a0a7;font-size:10px;text-align:center; }
.auth-theme { top:22px;right:24px; }
.auth-theme .btn-icon { width:42px;height:42px;border:1px solid #e7e4e0;border-radius:12px;background:rgba(255,255,255,.78);box-shadow:0 4px 14px rgba(0,0,0,.04); }
html.dark .auth-theme .btn-icon { background:#1b1c23;border-color:#34353e; }
@media(max-width:900px) {
  .auth-layout { grid-template-columns:minmax(230px,32%) minmax(0,1fr); }
  .auth-main { padding-left:clamp(22px,4vw,48px);padding-right:clamp(22px,4vw,48px); }
}
@media(max-width:680px) {
  .auth-layout { display:block;min-height:100svh; }
  .auth-aside { display:none; }
  .auth-main { min-height:100svh;padding:74px 22px 76px; }
  .auth-form-wrap { max-width:430px; }
  .auth-mobile-brand { margin-bottom:42px; }
  .auth-heading h2 { font-size:32px; }
  .auth-copyright { bottom:17px; }
  .auth-theme { top:15px;right:15px; }
}
@media(prefers-reduced-motion:reduce) { .auth-form-wrap { animation:none; } }


/* =========================================================
   JASTIPPINTAR AUTH REFRESH — EDITORIAL / PREMIUM RED & INK
   Login + register only. Existing PHP/auth logic is untouched.
========================================================= */
.auth-page {
    --auth-accent: #e8213a;
    --auth-accent-hover: #ff4058;
    --auth-line: rgba(255,255,255,.11);
    background: var(--bg);
}
.auth-layout {
    grid-template-columns: minmax(420px, 48%) minmax(0, 1fr);
    min-height: 100svh;
    overflow: clip;
}
.auth-aside {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0;
    border-right: 1px solid rgba(255,255,255,.10);
    isolation: isolate;
}
.auth-aside::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(7,8,12,.16) 0%, transparent 34%, rgba(7,8,12,.25) 60%, rgba(7,8,12,.88) 100%),
      linear-gradient(90deg, rgba(7,8,12,.16), transparent 60%);
}
.auth-full-canvas { z-index: 1; }
.auth-full-canvas svg {
    filter: saturate(.88) contrast(1.06);
    transform: scale(1.015);
}
.auth-brand-float {
    top: 34px;
    left: 38px;
    padding: 10px 20px 10px 11px;
    border-color: rgba(255,255,255,.16);
    background: rgba(10,11,15,.72);
    box-shadow: 0 14px 40px rgba(0,0,0,.24);
}
.auth-brand-logo-box {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}
.auth-brand-logo-box img { width: 25px; height: 25px; }
.auth-brand-text { letter-spacing: -.4px; font-size: 14px; }
.auth-live-card-floating {
    z-index: 5;
    left: 38px;
    right: 38px;
    bottom: 38px;
    max-width: 560px;
    padding: 23px 24px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15,16,21,.88), rgba(15,16,21,.66));
    box-shadow: 0 22px 65px rgba(0,0,0,.34);
    backdrop-filter: blur(18px);
}
.auth-live-title { font-size: clamp(19px, 2vw, 25px); letter-spacing: -.7px; }
.auth-live-sub { max-width: 440px; line-height: 1.75; }
.auth-live-chip { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.045); }

.auth-main,
.auth-main-register {
    position: relative;
    min-width: 0;
    min-height: 100svh;
    padding: 76px clamp(28px, 6vw, 90px) 54px;
    background:
      radial-gradient(ellipse at 90% 8%, rgba(232,33,58,.11), transparent 34%),
      radial-gradient(ellipse at 0% 100%, rgba(232,33,58,.055), transparent 38%),
      var(--bg);
}
.auth-form-wrap {
    width: 100%;
    max-width: 440px;
}
.auth-form-register { max-width: 470px; }
.auth-heading { margin-bottom: 30px; }
.auth-heading .auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: var(--primary2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}
.auth-heading .auth-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}
.auth-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(31px, 3.2vw, 43px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.7px;
}
.auth-heading > p {
    max-width: 390px;
    font-size: 13px;
    line-height: 1.85;
}
.auth-page .auth-tabs {
    gap: 5px;
    margin-bottom: 25px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface2);
}
.auth-page .auth-tab {
    min-height: 43px;
    border-radius: 9px;
    font-size: 12px;
    letter-spacing: .1px;
}
.auth-page .auth-tab.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 5px 18px rgba(232,33,58,.24);
}
.auth-form .field { margin-bottom: 19px; }
.auth-form .field label {
    margin-bottom: 9px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .55px;
}
.auth-form .input {
    min-height: 53px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-form .input:hover { border-color: rgba(232,33,58,.48); }
.auth-form .input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(232,33,58,.11);
}
.auth-show-password {
    right: 15px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary2);
}
.auth-page .auth-submit {
    min-height: 54px;
    margin-top: 25px;
    padding: 13px 19px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: linear-gradient(110deg, #d71932, #f02b45);
    box-shadow: 0 10px 25px rgba(232,33,58,.20);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .15px;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.auth-page .auth-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(110deg, #e8213a, #ff4058);
    box-shadow: 0 14px 30px rgba(232,33,58,.29);
}
.auth-submit span { font-size: 15px; }
.auth-bottom {
    margin-top: 25px;
    font-size: 12px;
}
.auth-bottom a { color: var(--primary2); font-weight: 800; }
.auth-back { margin-top: 23px; font-size: 11px; }
.auth-copyright {
    bottom: 18px;
    color: var(--text-dim);
    font-size: 9px;
    letter-spacing: .25px;
}
.auth-page .alert {
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 11px;
    padding: 13px 15px;
}
.auth-main-register { padding-top: 48px; padding-bottom: 50px; }
.auth-main-register .auth-heading { margin-bottom: 22px; }
.auth-main-register .auth-heading h2 { font-size: clamp(29px, 3vw, 38px); }
.auth-main-register .auth-tabs { margin-bottom: 21px; }
.auth-main-register .auth-form .field { margin-bottom: 14px; }
.auth-main-register .auth-submit { margin-top: 19px; }
.auth-role-options { gap: 11px; }
.auth-role-option {
    min-height: 72px;
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--surface);
}
.auth-role-option.selected {
    border-color: var(--primary);
    background: var(--primary-dim);
    box-shadow: inset 0 0 0 1px rgba(232,33,58,.12);
}
.auth-role-copy strong { font-size: 12px; }
.auth-role-copy small { font-size: 10px; line-height: 1.55; }

html.light .auth-main,
html.light .auth-main-register {
    background:
      radial-gradient(ellipse at 90% 8%, rgba(232,33,58,.075), transparent 34%),
      var(--bg);
}
html.light .auth-form .input { background: #fff; }
html.light .auth-page .auth-tabs { background: #efedf0; }
html.light .auth-page .auth-tab.active { color: #fff; }

@media (min-width: 901px) {
    .auth-main { align-items: center; }
    .auth-main-register { align-items: center; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .auth-layout { grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); }
    .auth-live-card-floating { left: 24px; right: 24px; bottom: 25px; padding: 18px; }
    .auth-live-chips { gap: 7px; }
    .auth-live-chip { padding: 8px; }
    .auth-main, .auth-main-register { padding-left: 34px; padding-right: 34px; }
}
@media (max-width: 900px) {
    .auth-layout { display: block; }
    .auth-main, .auth-main-register {
        min-height: 100svh;
        padding: 76px 25px 55px;
    }
    .auth-form-wrap, .auth-form-register { max-width: 470px; }
    .auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 42px;
        color: var(--text);
        font-family: 'IBM Plex Mono', monospace;
        font-size: 14px;
        font-weight: 700;
    }
    .auth-brand-icon {
        display: grid;
        width: 43px;
        height: 43px;
        place-items: center;
        border: 1px solid rgba(232,33,58,.28);
        border-radius: 13px;
        background: var(--primary-dim);
    }
    .auth-main-register .auth-mobile-brand { margin-bottom: 30px; }
}
@media (max-width: 520px) {
    .auth-main, .auth-main-register { padding: 72px 21px 50px; }
    .auth-mobile-brand { margin-bottom: 35px; }
    .auth-heading h2 { font-size: 31px; }
    .auth-form .input { min-height: 51px; }
    .auth-role-option { min-height: 68px; padding: 10px; }
    .auth-copyright { left: 15px; right: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page .auth-submit,
    .auth-page .auth-form .input { transition: none; }
}
