:root{
  --bg:#f5f7ff;
  --card:#ffffff;
  --line:#dbe5fb;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#1145ff;
  --primary-2:#0b36d6;
  --shadow:0 20px 50px rgba(17,69,255,.12);
}

*{box-sizing:border-box}
html,body{
  min-height:100%;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{
  width:0;
  height:0;
}
body{
  margin:0;
  font-family:'Outfit',system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(17,69,255,.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  overflow-x:hidden;
}

.theme-toggle-btn{
  position:fixed;
  right:16px;
  top:16px;
  z-index:200;
  border:1px solid var(--line);
  background:rgba(255,255,255,.88);
  color:var(--text);
  border-radius:999px;
  padding:10px 14px;
  font-family:'Outfit',system-ui,sans-serif;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(15,23,42,.08);
  backdrop-filter:blur(10px);
}

.super-shell{
  min-height:100vh;
  padding:32px;
  background-image:
    linear-gradient(rgba(17,69,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,69,255,.06) 1px, transparent 1px);
  background-size:36px 36px;
}

.hidden{display:none !important}

.super-login,.super-app{
  width:min(1280px,100%);
  margin:0 auto;
}

.super-login{
  min-height:calc(100vh - 64px);
  display:grid;
  place-items:center;
}

.super-header,.super-hero,.super-panel{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(17,69,255,.12);
  border-radius:30px;
  box-shadow:var(--shadow);
}
.super-card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 40px;
  padding: 48px;
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 30px 60px rgba(17, 69, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.super-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.super-brand-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  display:grid;
  place-items:center;
  font-size:24px;
  font-weight:800;
  box-shadow:0 14px 30px rgba(17,69,255,.3);
}

.super-brand-title{
  font-size:13px;
  letter-spacing:.18em;
  font-weight:800;
  color:var(--primary);
}

.super-brand-sub,.super-copy,.super-kicker,.super-panel-title,.super-note{
  color:var(--muted);
}

.super-copy{
  margin:20px 0 22px;
  line-height:1.6;
}

.super-form{
  display:grid;
  gap:12px;
}

.super-form label{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:8px;
  color:var(--muted);
}

.super-input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 18px 22px;
  font: inherit;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.super-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 
    0 0 0 5px rgba(17, 69, 255, 0.1),
    0 10px 24px rgba(17, 69, 255, 0.08);
  transform: translateY(-1px);
}

.super-error{
  min-height:20px;
  color:#e11d48;
  font-size:14px;
}

.super-btn,.super-ghost{
  border:0;
  border-radius:18px;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.super-btn{
  margin-top:4px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  padding:16px 20px;
  box-shadow:0 18px 36px rgba(17,69,255,.28);
}

.super-btn:hover,.super-ghost:hover{
  transform:translateY(-1px);
}

.super-app{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.super-header,.super-hero{
  padding:24px 28px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

.super-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.super-ghost{
  background:#eef4ff;
  color:var(--primary);
  padding:12px 16px;
}

.super-theme-btn{
  min-width:116px;
}

.super-hero{
  align-items:flex-end;
}

.super-hero-copy{
  max-width:760px;
}

.super-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(17,69,255,.08);
  color:var(--primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.super-hero h1{
  margin:10px 0 8px;
  font-size:clamp(30px, 3.4vw, 44px);
  line-height:1.06;
}

.super-hero p{
  margin:0;
  max-width:620px;
  line-height:1.45;
  color:var(--muted);
}

.super-badges{
  display:grid;
  grid-template-columns:repeat(2,minmax(150px,1fr));
  gap:12px;
}

.super-badge{
  min-width:160px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#f8fbff;
}

.super-badge span{
  display:block;
  color:var(--muted);
  font-size:13px;
}

.super-badge strong{
  display:block;
  margin-top:6px;
  font-size:20px;
}

.super-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.super-panel{
  padding:24px;
  display:grid;
  gap:16px;
}

.super-panel-wide{
  grid-column:1 / -1;
}

.super-panel-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.super-panel-title{
  font-size:20px;
  font-weight:800;
  color:var(--text);
}

.super-switch-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f8fbff;
  font-weight:700;
  min-height:64px;
}

.super-switch-row span{
  line-height:1.35;
}

.super-switch{
  width:44px;
  height:24px;
  appearance:none;
  outline:none;
  border-radius:999px;
  background:#cbd5e1;
  position:relative;
  cursor:pointer;
  transition:background .2s ease;
  flex:0 0 auto;
}

.super-switch::before{
  content:'';
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
  transition:left .2s ease;
}

.super-switch:checked{
  background:var(--primary);
}

.super-switch:checked::before{
  left:23px;
}

.super-switch:disabled{
  cursor:not-allowed;
  opacity:.7;
}

.super-footer{
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.super-note{
  min-height:20px;
}

@media (max-width: 1100px){
  .super-grid{grid-template-columns:1fr}
  .super-panel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 900px){
  .super-hero{flex-direction:column; align-items:flex-start}
  .super-badges{grid-template-columns:1fr}
  .super-panel-grid{grid-template-columns:1fr}
}

@media (max-width: 700px){
  .super-shell{padding:16px}
  .super-login{min-height:auto; padding:40px 0}
  .super-card,.super-header,.super-hero,.super-panel{border-radius:24px}
  .super-header{flex-direction:column}
  .super-actions{width:100%}
  .super-actions .super-ghost{flex:1 1 auto; text-align:center}
  .super-footer{justify-content:stretch}
  .super-btn{width:100%}
}

@media (max-width: 480px){
  .super-shell{padding:12px}
  .super-card{padding:22px}
  .super-header,.super-hero,.super-panel{padding:18px}
  .super-brand{gap:12px}
  .super-brand-icon{width:46px;height:46px;border-radius:16px}
  .super-brand-title{font-size:12px;letter-spacing:.14em}
  .super-hero h1{font-size:clamp(26px, 8vw, 32px)}
  .super-hero p{font-size:14px}
  .super-badge{min-width:0;padding:14px 16px}
  .super-panel-title{font-size:18px}
  .super-switch-row{padding:12px 14px;gap:12px;min-height:58px}
  .super-switch{width:42px;height:22px}
  .super-switch::before{width:16px;height:16px;top:3px;left:3px}
  .super-switch:checked::before{left:22px}
}

body[data-theme="dark"]{
  --bg:#08111f;
  --card:#111a2d;
  --line:#26344d;
  --text:#edf2ff;
  --muted:#9aa9c2;
  --primary:#6c8dff;
  --primary-2:#4f71ff;
  --shadow:0 20px 50px rgba(0,0,0,.26);
  color-scheme:dark;
}
body[data-theme="dark"]{
  background:linear-gradient(180deg, #08111f 0%, #0d1728 100%);
}
body[data-theme="dark"] .super-shell{
  background-image:
    linear-gradient(rgba(108,141,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,141,255,.08) 1px, transparent 1px);
}
body[data-theme="dark"] .super-card,
body[data-theme="dark"] .super-header,
body[data-theme="dark"] .super-hero,
body[data-theme="dark"] .super-panel{
  background:rgba(17,26,45,.92);
  border-color:var(--line);
}
body[data-theme="dark"] .super-input,
body[data-theme="dark"] .super-ghost,
body[data-theme="dark"] .super-badge,
body[data-theme="dark"] .super-switch-row{
  background:#0f1829;
  border-color:var(--line);
  color:var(--text);
}
body[data-theme="dark"] .super-brand-title,
body[data-theme="dark"] .super-panel-title,
body[data-theme="dark"] .super-hero h1,
body[data-theme="dark"] .super-copy,
body[data-theme="dark"] .super-brand-sub,
body[data-theme="dark"] .super-note{
  color:var(--text);
}
body[data-theme="dark"] .super-copy,
body[data-theme="dark"] .super-brand-sub,
body[data-theme="dark"] .super-note,
body[data-theme="dark"] .super-hero p,
body[data-theme="dark"] .super-badge span{
  color:var(--muted);
}
body[data-theme="dark"] .super-kicker{
  background:rgba(108,141,255,.14);
  color:#dbe5ff;
}
body[data-theme="dark"] .theme-toggle-btn{
  background:rgba(255,255,255,.08);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
