:root{
  --bg: #0f1115;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --txt: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background-color: var(--bg);
  color: var(--txt);
  position: relative;
  overflow-x: hidden;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 14% -12%, rgba(96,165,250,0.14), transparent 72%),
    radial-gradient(980px 460px at 88% -14%, rgba(52,211,153,0.10), transparent 74%);
  background-repeat: no-repeat, no-repeat;
}

body > *{
  position: relative;
  z-index: 1;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.brand{
  font-weight: 700;
  letter-spacing: 0.2px;
}

.userbox{
  display:flex;
  align-items:center;
  gap: 10px;
}

.userpill{
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.userpill.muted{ color: var(--muted); }

.container{
  max-width: 680px;
  margin: 28px auto;
  padding: 0 16px;
}

.card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

h1{
  margin: 0 0 6px;
  font-size: 22px;
}

.sub{
  margin: 0 0 14px;
  color: var(--muted);
}

.alert{
  border: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.14);
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0 14px;
  color: rgba(255,255,255,0.92);
}

.form{ display:flex; flex-direction:column; gap: 12px; }

.label{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--txt);
  outline: none;
}

.input:focus{
  border-color: rgba(96,165,250,0.55);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.18);
}

.pwrow{
  display:flex;
  align-items:center;
  gap: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--txt);
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  white-space: nowrap;
}

.btn:hover{ background: var(--card2); }

.btn-primary{
  border-color: rgba(96,165,250,0.55);
  background: rgba(96,165,250,0.22);
}

.btn-primary:hover{
  background: rgba(96,165,250,0.28);
}

.btn-ghost{
  background: transparent;
}

.hint{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.box{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  color: var(--muted);
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
}
