:root{
  --bg1:#1f2a44;
  --bg2:#0b1020;
  --bg3:#060913;

  --text:#e6edf3;
  --muted:rgba(230,237,243,0.75);
  --muted2:rgba(230,237,243,0.60);
  --muted3:rgba(230,237,243,0.55);
  --line:rgba(255,255,255,0.08);
  --line2:rgba(255,255,255,0.10);

  --panel-bg:rgba(0,0,0,0.18);
  --card-bg:rgba(255,255,255,0.04);
  --card-border:rgba(255,255,255,0.10);

  --green:#22c55e;
  --grad1:#a7f3d0;
  --grad2:#60a5fa;

  --shadow:0 20px 60px rgba(0,0,0,0.45);
  --shadow2:0 12px 28px rgba(96,165,250,0.20);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%);
  color:var(--text);
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

/* Shared frame */
.wrap{
  width:min(860px,100%);
  background: var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.top{
  padding:22px 22px 16px;
  display:flex;
  gap:16px;
  align-items:flex-start;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

.logo{
  width:42px;height:42px;border-radius:14px;
  background: linear-gradient(135deg, var(--grad2), #34d399);
  display:grid;place-items:center;
  box-shadow: 0 10px 25px rgba(52,211,153,0.12);
  flex:0 0 auto;
}

.logo svg{ filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25)); }

h1{ margin:0; font-size:22px; letter-spacing:0.2px; }
.sub{ margin:6px 0 0; color:var(--muted); line-height:1.4; font-size:14px; }

.grid{
  padding:18px 22px 22px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:16px;
}
@media (max-width: 720px){ .grid{ grid-template-columns:1fr; } }

.panel{
  background: var(--panel-bg);
  border:1px solid var(--line2);
  border-radius:14px;
  padding:16px;
}

.panel h2{
  margin:0 0 8px;
  font-size:14px;
  color: rgba(230,237,243,0.9);
  font-weight:600;
  letter-spacing:0.2px;
}

.panel p{
  margin:0;
  color: rgba(230,237,243,0.78);
  line-height:1.6;
  font-size:14px;
}

/* Status list */
.list{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}

.item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.badge{
  width:9px;height:9px;border-radius:999px;background: var(--green);
  margin-top:6px; flex:0 0 auto;
  box-shadow:0 0 0 6px rgba(34,197,94,0.12);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:12px;
  padding:11px 14px;
  border-radius:12px;
  text-decoration:none;
  border:0;
  cursor:pointer;
  font-weight:800;
  color:#061018;
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  box-shadow: var(--shadow2);
}

.btn:disabled{
  opacity:0.75;
  cursor:not-allowed;
  filter:saturate(0.8);
}

/* Landing fine text */
.fine{
  margin-top:10px;
  font-size:12px;
  color: var(--muted3);
  line-height:1.5;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding:2px 6px;border-radius:8px;
  color:#fff;
}

/* Login card */
.card{
  width:min(520px, 100%);
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card .head{
  padding:20px 20px 14px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

.card h1{ font-size:20px; }

.card .sub{
  margin:8px 0 0;
  font-size:14px;
  color: rgba(230,237,243,0.75);
  line-height:1.5;
}

.card .body{
  padding:18px 20px 20px;
}

label{
  display:block;
  font-size:13px;
  color:rgba(230,237,243,0.85);
  margin:12px 0 6px;
}

input{
  width:100%;
  background: rgba(0,0,0,0.20);
  border:1px solid rgba(255,255,255,0.12);
  color:#fff;
  border-radius:12px;
  padding:12px 12px;
  outline:none;
}

input::placeholder{ color: rgba(230,237,243,0.45); }

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

.hint{
  font-size:12px;
  color: rgba(230,237,243,0.60);
}

.toast{
  margin-top:14px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.28);
  color: rgba(254,226,226,0.95);
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  line-height:1.4;
  display:none;
}

.footer{
  padding:14px 20px 18px;
  border-top:1px solid var(--line);
  color: rgba(230,237,243,0.55);
  font-size:12px;
  line-height:1.5;
}

.spinner{
  width:14px;height:14px;
  border-radius:999px;
  border:2px solid rgba(6,16,24,0.25);
  border-top-color: rgba(6,16,24,0.85);
  animation: spin 0.75s linear infinite;
  display:none;
}
@keyframes spin{ to { transform: rotate(360deg); } }
