/* Shared TOTO login screen — used identically by /user/ and /admin/ (see
   login.js for the markup that this styles). Every rule is scoped under
   .toto-shell / #login-screen and every custom property is namespaced
   ("--toto-*") specifically so this can never collide with either app's
   own, much larger style.css (both already define generic names this
   design would otherwise clash with, e.g. --danger, .btn, .field, .error,
   .toggle, .panel, .brand — the last one is even reused by the Admin
   sidebar's own unrelated "brand" row). Do not add an unscoped selector
   here without checking both style.css files first. */

#login-screen {
  background: #EEF3FA;
  background-image:
    radial-gradient(900px 500px at 10% -10%, #DCEBFF 0%, transparent 60%),
    radial-gradient(700px 500px at 110% 110%, #E0F8EA 0%, transparent 60%);
}

.toto-shell {
  --toto-blue:#0068FF; --toto-blue-d:#0B3FA8; --toto-navy:#14306B; --toto-sky:#12A7F5;
  --toto-green:#1FCB6A; --toto-orange:#F7931E; --toto-yellow:#FFC928;
  --toto-ink:#131A2B; --toto-muted:#5E6B85; --toto-line:#D9E0EC; --toto-field:#F3F6FB;
  --toto-card:#FFFFFF; --toto-danger:#E5484D;

  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--toto-ink);
  width: 100%; max-width: 940px; min-height: 560px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--toto-card); border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(20,48,107,.35), 0 2px 6px rgba(20,48,107,.06);
}
.toto-shell *{ box-sizing: border-box; }

/* ---------- brand panel ---------- */
.toto-brand{
  position:relative; color:#fff; padding:40px 40px 32px;
  background:linear-gradient(155deg,#0A8BF0 0%,#0068FF 45%,#14306B 100%);
  display:flex; flex-direction:column; justify-content:space-between; overflow:hidden;
}
.toto-brand::before,.toto-brand::after{content:""; position:absolute; border-radius:50%; pointer-events:none}
.toto-brand::before{width:340px;height:340px; right:-120px; top:-120px; background:rgba(255,255,255,.07)}
.toto-brand::after{width:220px;height:220px; left:-80px; bottom:-90px; background:rgba(31,203,106,.18)}
.toto-brand-top{display:flex; align-items:center; gap:10px; position:relative; z-index:1}
.toto-chip{font-size:12px; font-weight:600; letter-spacing:.02em; padding:6px 12px; border-radius:999px;
        background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22)}
.toto-hero{position:relative; z-index:1; display:flex; justify-content:center; margin:8px 0}
.toto-hero-img{width:min(300px,80%); height:auto; filter:drop-shadow(0 18px 30px rgba(0,0,0,.25));
            animation:toto-float 5s ease-in-out infinite}
@keyframes toto-float{50%{transform:translateY(-8px)}}
.toto-brand-copy{position:relative; z-index:1}
.toto-brand-copy h2{margin:0 0 6px; font-size:40px; font-weight:800; letter-spacing:-.02em; line-height:1}
.toto-brand-copy h2 span{color:var(--toto-yellow)}
.toto-brand-copy p{margin:0; font-size:15px; line-height:1.55; color:rgba(255,255,255,.85); max-width:340px}
.toto-dots{display:flex; gap:6px; margin-top:18px}
.toto-dots i{width:10px;height:10px;border-radius:50%}

/* ---------- form panel ---------- */
.toto-panel{padding:48px 48px 32px; display:flex; flex-direction:column; justify-content:center}
.toto-logo-row{display:flex; align-items:center; gap:12px; margin-bottom:28px}
.toto-logo-sm{width:52px; height:56px; flex:none}
.toto-logo-name{font-size:22px; font-weight:800; letter-spacing:-.01em; line-height:1.1; color: var(--toto-ink);}
.toto-logo-name small{display:block; font-size:12px; font-weight:500; color:var(--toto-muted); letter-spacing:0}
.toto-panel h1{margin:0 0 6px; font-size:26px; font-weight:700; letter-spacing:-.01em}
.toto-sub{margin:0 0 28px; color:var(--toto-muted); font-size:14px; line-height:1.55}
.toto-panel label{display:block; font-size:13px; font-weight:600; margin:0 0 6px}
.toto-field{position:relative; margin-bottom:16px}
.toto-field svg.toto-ic{position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:#8A97B1; pointer-events:none}
.toto-panel input{
  width:100%; height:48px; padding:0 44px 0 42px; font:inherit; font-size:15px; color:var(--toto-ink);
  background:var(--toto-field); border:1.5px solid transparent; border-radius:12px; outline:none;
  transition:border-color .15s, background .15s, box-shadow .15s;
}
.toto-panel input::placeholder{color:#9AA6BD}
.toto-panel input:hover{border-color:var(--toto-line)}
.toto-panel input:focus{background:#fff; border-color:var(--toto-blue); box-shadow:0 0 0 4px rgba(0,104,255,.12)}
.toto-toggle{position:absolute; right:8px; top:50%; transform:translateY(-50%); border:0; background:none;
        width:34px; height:34px; border-radius:8px; cursor:pointer; color:#8A97B1; display:grid; place-items:center}
.toto-toggle:hover{background:#E7ECF5; color:var(--toto-ink)}
.toto-toggle svg{width:18px;height:18px}
.toto-btn{
  width:100%; height:50px; border:0; border-radius:12px; cursor:pointer; font:inherit; font-size:15px; font-weight:700;
  color:#fff; background:var(--toto-blue); display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 10px 24px -10px rgba(0,104,255,.7); transition:transform .08s, background .15s;
}
.toto-btn:hover{background:#0058DB}
.toto-btn:active{transform:translateY(1px)}
.toto-btn svg{width:18px;height:18px}
/* Shown/hidden purely via CSS :empty -- app.js's existing login handlers
   only ever set/clear #login-error's textContent (never a class), so this
   must react to content, not to a class this shared component doesn't
   control. */
.toto-error{ margin:0 0 16px; padding:10px 12px; border-radius:10px; font-size:13px;
       background:#FDECEC; color:#B42318; border:1px solid #F8C9C9}
.toto-error:empty{ display:none; }
.toto-foot{margin-top:24px; line-height:1.7; font-size:12px; color:#8A97B1; text-align:center}

/* ---------- responsive ---------- */
@media (max-width:820px){
  .toto-shell{grid-template-columns:1fr; max-width:460px; min-height:0}
  .toto-brand{padding:20px 24px; flex-direction:row; align-items:center; justify-content:flex-start; gap:16px}
  .toto-brand-top,.toto-dots,.toto-brand-copy p{display:none}
  .toto-hero{margin:0; flex:none}
  .toto-hero-img{width:92px; animation:none}
  .toto-brand-copy h2{font-size:30px}
  .toto-panel{padding:28px 24px 24px}
  .toto-logo-row{display:none}
}
