* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, Segoe UI, sans-serif;
  color: #f4f4f5;
  background: radial-gradient(ellipse at center, #252b34 0%, #12161b 55%, #0a0c0f 100%);
}
.card {
  width: min(92vw, 26rem);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.1rem;
  background: rgba(20, 24, 30, .92);
}
h1 {
  margin: 0 0 1.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
}
label {
  display: block;
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: #c4c8ce;
}
input {
  width: 100%;
  margin-bottom: .95rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .55rem;
  background: #0f1318;
  color: #f4f4f5;
  font: inherit;
}
input:focus {
  outline: 2px solid #f5c518;
  border-color: transparent;
}
.pw-wrap {
  position: relative;
  margin-bottom: .95rem;
}
.pw-wrap input {
  margin-bottom: 0;
  padding-right: 2.7rem;
}
.pw-toggle {
  position: absolute;
  right: .3rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  margin: 0;
  padding: .35rem;
  border-radius: .4rem;
  background: transparent;
  color: #9aa1aa;
  line-height: 0;
}
.pw-toggle:hover {
  filter: none;
  color: #f4f4f5;
  background: rgba(255,255,255,.08);
}
.hint {
  margin: -.55rem 0 .95rem;
  font-size: .75rem;
  font-weight: 500;
  color: #8b929b;
}
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: .25rem;
  padding: .85rem 1rem;
  border: 0;
  border-radius: .7rem;
  background: #f5c518;
  color: #111318;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  color: #f4f4f5;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 600;
}
.msg {
  margin: 0 0 1rem;
  padding: .7rem .8rem;
  border-radius: .55rem;
  font-size: .9rem;
}
.msg-error { background: rgba(225, 29, 72, .18); color: #fecdd3; }
.msg-ok { background: rgba(34, 197, 94, .16); color: #bbf7d0; }
.links {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: .9rem;
  color: #9aa1aa;
}
.links a { color: #f5c518; text-decoration: none; }
.links a:hover { text-decoration: underline; }
p.lead { margin: 0 0 1.2rem; color: #c4c8ce; text-align: center; }
.stack { display: grid; gap: .7rem; }
