:root{
  --bg0:#07111f;
  --bg1:#0f1b33;
  --bg2:#102a43;
  --card:#ffffff;
  --card2:rgba(255,255,255,.78);
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(148,163,184,.28);
  --blue:#2563eb;
  --blue2:#38bdf8;
  --cyan:#22d3ee;
  --green:#10b981;
  --red:#ef4444;
  --amber:#f59e0b;
  --shadow:0 34px 95px rgba(2,8,23,.42);
}

*{box-sizing:border-box}

html,body{
  min-height:100%;
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
}

body.vps-auth-modern{
  min-height:100vh;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(37,99,235,.34), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(34,211,238,.20), transparent 32%),
    radial-gradient(circle at 52% 95%, rgba(16,185,129,.12), transparent 30%),
    linear-gradient(135deg,#06101f 0%,#0b1220 46%,#0d2532 100%);
}

body.vps-auth-modern::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  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:48px 48px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.82), transparent 86%);
}

.auth-brand{
  position:fixed;
  z-index:20;
  top:28px;
  left:32px;
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-weight:900;
  letter-spacing:-.04em;
  font-size:19px;
}

.auth-brand .mark{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#38bdf8,#2563eb);
  box-shadow:0 16px 44px rgba(37,99,235,.35);
  color:white;
}

.auth-shell{
  position:relative;
  z-index:2;
  min-height:100vh;
  width:min(1120px, calc(100vw - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  align-items:center;
  gap:22px;
  padding:96px 0 72px;
}

.auth-hero{
  position:relative;
  min-height:560px;
  padding:42px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:34px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.055)),
    radial-gradient(circle at top right, rgba(56,189,248,.18), transparent 40%);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.auth-hero::after{
  content:"";
  position:absolute;
  width:340px;
  height:340px;
  right:-120px;
  bottom:-130px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(37,99,235,.36),rgba(34,211,238,.16));
  filter:blur(3px);
}

.auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#bfdbfe;
  font-size:12px;
  font-weight:850;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.auth-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:99px;
  background:#22c55e;
  box-shadow:0 0 0 6px rgba(34,197,94,.12);
}

.auth-hero h1{
  margin:24px 0 14px;
  color:#fff;
  font-size:56px;
  line-height:.96;
  letter-spacing:-.075em;
}

.auth-hero p{
  width:min(520px,100%);
  margin:0;
  color:#b6c4d8;
  font-size:16px;
  line-height:1.65;
}

.auth-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:26px 0 0;
}

.auth-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.48);
  border:1px solid rgba(255,255,255,.12);
  color:#dbeafe;
  font-size:13px;
  font-weight:750;
}

.auth-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#22d3ee;
}

.auth-console{
  position:relative;
  z-index:2;
  margin-top:34px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:26px;
  overflow:hidden;
  background:rgba(2,6,23,.54);
  box-shadow:0 26px 65px rgba(0,0,0,.28);
}

.console-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 15px;
  border-bottom:1px solid rgba(255,255,255,.09);
  color:#cbd5e1;
  font-size:12px;
  font-weight:800;
}

.console-lights{
  display:flex;
  gap:7px;
}

.console-lights span{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
}

.console-body{
  padding:18px;
  display:grid;
  gap:12px;
}

.console-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:17px;
  background:rgba(255,255,255,.055);
  color:#dbeafe;
  font-size:13px;
}

.console-row strong{
  color:#fff;
}

.console-row small{
  color:#7dd3fc;
  font-weight:850;
}

.auth-panel{
  position:relative;
  border-radius:34px;
  padding:18px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:var(--shadow);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}

.auth-card{
  border-radius:26px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  padding:28px;
  box-shadow:0 22px 70px rgba(15,23,42,.12);
}

.auth-card h2{
  margin:0;
  font-size:29px;
  line-height:1.05;
  letter-spacing:-.06em;
  color:#0f172a;
}

.auth-card .subtitle{
  margin:9px 0 22px;
  color:#64748b;
  font-size:14px;
  line-height:1.55;
}

.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:5px;
  margin-bottom:18px;
  border-radius:18px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
}

.auth-tab{
  border:0;
  border-radius:14px;
  padding:12px 10px;
  color:#475569;
  background:transparent;
  font-weight:900;
  cursor:pointer;
  transition:.18s ease;
}

.auth-tab.active{
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 14px 34px rgba(37,99,235,.28);
}

.form-view{display:none}
.form-view.active{display:block}

.field{
  margin:13px 0;
}

.field label{
  display:block;
  margin:0 0 7px;
  color:#334155;
  font-size:12px;
  font-weight:900;
}

.input-wrap{
  position:relative;
}

.input-wrap input{
  width:100%;
  border:1px solid #dbe3ee;
  border-radius:16px;
  background:#f8fafc;
  color:#0f172a;
  outline:none;
  padding:14px 44px 14px 14px;
  font-size:14px;
  transition:.18s ease;
}

.input-wrap input:focus{
  border-color:rgba(37,99,235,.7);
  background:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.input-icon{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:#0ea5e9;
  background:#ecfeff;
  font-size:12px;
  font-weight:900;
}

.row-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 0 14px;
}

.helper{
  color:#94a3b8;
  font-size:12px;
  line-height:1.4;
}

.link{
  color:#2563eb;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
}

.link:hover{text-decoration:underline}

.primary-btn{
  width:100%;
  border:0;
  border-radius:17px;
  padding:14px 16px;
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 18px 42px rgba(37,99,235,.30);
  font-weight:950;
  cursor:pointer;
  transition:.18s ease;
}

.primary-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 24px 54px rgba(37,99,235,.36);
}

.primary-btn:disabled{
  opacity:.68;
  cursor:not-allowed;
  transform:none;
}

.secondary-btn{
  width:100%;
  border:1px solid #dbe3ee;
  border-radius:17px;
  padding:13px 16px;
  color:#0f172a;
  background:#fff;
  font-weight:900;
  cursor:pointer;
}

.status{
  display:none;
  margin:14px 0 0;
  padding:12px 13px;
  border-radius:16px;
  font-size:13px;
  line-height:1.45;
  border:1px solid transparent;
}

.status.show{display:block}
.status.success{background:#ecfdf5;color:#065f46;border-color:#bbf7d0}
.status.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.status.warning{background:#fffbeb;color:#92400e;border-color:#fde68a}

.auth-foot{
  margin-top:18px;
  text-align:center;
  color:#94a3b8;
  font-size:12px;
}

.auth-foot a{
  color:#2563eb;
  font-weight:900;
  text-decoration:none;
}

.verify-box{
  display:none;
  margin-top:16px;
  padding:16px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}

.verify-box.show{display:block}

.simple-shell{
  width:min(510px, calc(100vw - 42px));
  min-height:100vh;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:96px 0 70px;
  position:relative;
  z-index:2;
}

.simple-card{
  width:100%;
  border-radius:34px;
  padding:18px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:var(--shadow);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}

.simple-card-inner{
  border-radius:26px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  padding:30px;
  box-shadow:0 22px 70px rgba(15,23,42,.12);
}

.simple-icon{
  width:54px;
  height:54px;
  border-radius:20px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:950;
  background:linear-gradient(135deg,#2563eb,#38bdf8);
  box-shadow:0 18px 42px rgba(37,99,235,.28);
  margin-bottom:18px;
}

.simple-card h1{
  margin:0;
  font-size:34px;
  line-height:1;
  letter-spacing:-.065em;
}

.simple-card p{
  margin:12px 0 20px;
  color:#64748b;
  font-size:14px;
  line-height:1.6;
}

@media (max-width:920px){
  .auth-brand{
    position:relative;
    top:auto;
    left:auto;
    padding:22px 24px 0;
  }

  .auth-shell{
    width:min(620px, calc(100vw - 36px));
    grid-template-columns:1fr;
    padding:32px 0 60px;
  }

  .auth-hero{
    min-height:auto;
    padding:30px;
  }

  .auth-hero h1{
    font-size:40px;
  }
}

@media (max-width:560px){
  .auth-card,
  .simple-card-inner{
    padding:22px;
  }

  .auth-panel,
  .simple-card{
    border-radius:26px;
    padding:12px;
  }

  .auth-hero{
    border-radius:26px;
  }

  .auth-hero h1{
    font-size:34px;
  }

  .row-between{
    align-items:flex-start;
    flex-direction:column;
  }
}
