:root {
  --bg: #0e0f13;
  --card: #16181f;
  --fg: #f3f4f6;
  --muted: #9aa3b2;
  --accent: #4f7cff;
  --accent-fg: #fff;
  --border: #262a33;
  --ok: #2ecc71;
  --err: #ff5d5d;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1b1e29 0%, var(--bg) 60%);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.brand { text-align: center; margin-bottom: 22px; }
.brand h1 { font-size: 20px; margin: 0 0 4px; letter-spacing: .2px; }
.brand p { color: var(--muted); font-size: 13px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 16px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=email], select {
  width: 100%;
  padding: 13px 14px;
  background: #0f1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-size: 15px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }

/* Buttons: full-width, stacked, centered (mobile-first) */
.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-top: 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #20242e; color: var(--fg); border: 1px solid var(--border); }
.btn:disabled { opacity: .5; cursor: default; }
.linkrow { text-align: center; margin-top: 18px; }
.linkrow a { color: var(--accent); font-size: 13px; text-decoration: none; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 20px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.msg { margin-top: 14px; padding: 11px 13px; border-radius: 10px; font-size: 13px; display: none; }
.msg.show { display: block; }
.msg.ok { background: rgba(46,204,113,.12); color: var(--ok); }
.msg.err { background: rgba(255,93,93,.12); color: var(--err); }
.hidden { display: none !important; }
.codes { background:#0f1117; border:1px solid var(--border); border-radius:10px; padding:14px; margin-top:14px; font-family: ui-monospace, monospace; font-size:14px; line-height:1.9; letter-spacing:1px; }
.cred-list { list-style:none; padding:0; margin:14px 0 0; }
.cred-list li { display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid var(--border); font-size:14px; }
.cred-list .del { color: var(--err); background:none; border:none; cursor:pointer; font-size:13px; }
.note { color: var(--muted); font-size: 12px; margin-top: 10px; }
