* { box-sizing: border-box; }
:root {
  --bg: #0b1324;
  --card: #121a2f;
  --muted: #9aa4b2;
  --text: #e6eef8;
  --primary: #0d6efd;
  --danger: #dc3545;
  --success: #198754;
  --warning: #f59e0b;
  --border: #1f2a44;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, #142042, transparent), var(--bg);
  color: var(--text);
}
.container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.header .icon { width: 36px; height: 36px; opacity: .9; filter: invert(90%); }
.subtitle { color: var(--muted); margin: 4px 0 0; }
.form { display: grid; gap: 14px; margin-top: 12px; }
.form-row { display: grid; gap: 8px; }
label { font-weight: 600; }
input {
  background: #0f1730;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
}
input:focus { border-color: #2f57ff; box-shadow: 0 0 0 3px rgba(13,110,253,.25); }
.password-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
button.btn { cursor: pointer; padding: 12px 16px; border: 0; border-radius: 10px; font-weight: 600; }
.btn-primary { background: linear-gradient(90deg, #2f57ff, #7a5cff); color: white; }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.hint { color: var(--muted); }
.alert { border-radius: 12px; padding: 12px 14px; margin-top: 8px; border: 1px solid var(--border); background: #0f1730; }
.alert-error { border-color: #5d2430; background: rgba(220,53,69,.1); color: #ffb3bd; }
.alert-success { border-color: #244d34; background: rgba(25,135,84,.1); color: #b6ffdc; }
.footer { margin-top: 12px; color: var(--muted); }
.strength { height: 6px; background: #1b2749; border-radius: 999px; position: relative; overflow: hidden; }
.strength::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, #ff6b6b, #ffd93d, #51cf66); transition: width .25s ease; }
.strength[data-level="1"]::after { width: 33%; }
.strength[data-level="2"]::after { width: 66%; }
.strength[data-level="3"]::after { width: 100%; }
