* { box-sizing: border-box; }
:root { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #0e1621;
  color: #f5f7fa;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.card {
  width: min(450px, calc(100vw - 32px));
  background: #17212b;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
h1 { margin: 0 0 8px; font-size: 28px; }
.sub { color: #91a4b7; margin: 0 0 24px; line-height: 1.45; }
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 8px; color: #c8d3dc; }
input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255,255,255,.11);
  background: #242f3d;
  color: #f5f7fa;
  border-radius: 12px;
  padding: 0 13px;
  outline: none;
}
input:focus { border-color: #3390ec; box-shadow: 0 0 0 3px rgba(51,144,236,.12); }
input[readonly] { opacity: .78; }
button {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: #3390ec;
  color: white;
  font-weight: 800;
  cursor: pointer;
  padding: 0 14px;
}
button:hover { background: #2b82d9; }
button:disabled { opacity: .58; cursor: wait; }
.row { display: flex; gap: 10px; align-items: center; }
.row input { flex: 1; min-width: 0; }
.mini-btn { width: auto; min-width: 96px; height: 40px; margin-top: 0; white-space: nowrap; border-radius: 10px; }
.otp-box { margin-top: 10px; }
.status, .hint { color: #91a4b7; font-size: 12px; margin-top: 8px; line-height: 1.4; }
.status.ok, .status-message.ok { color: #8ef0b0; }
.status.bad, .status-message.bad { color: #ffb0b0; }
.error, .status-message {
  background: rgba(255, 107, 107, .14);
  border: 1px solid rgba(255, 107, 107, .38);
  color: #ffb0b0;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.status-message.ok { background: rgba(75, 210, 130, .1); border-color: rgba(75, 210, 130, .35); }
.link { text-align: center; color: #91a4b7; margin-top: 18px; font-size: 14px; }
a { color: #6db6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.legacy-migration {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.legacy-migration h2 { font-size: 17px; margin: 0 0 8px; }
.legacy-migration p { color: #91a4b7; font-size: 12px; line-height: 1.45; margin: 0; }
.noscript { width: min(450px, calc(100vw - 32px)); margin: 12px auto; color: #ffb0b0; }
[hidden] { display: none !important; }

.label-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.label-row label { margin-bottom: 8px; }
.forgot-link { font-size: 13px; margin-bottom: 8px; white-space: nowrap; }
.warning-box {
  background: rgba(255, 184, 77, .10);
  border: 1px solid rgba(255, 184, 77, .35);
  color: #ffd18a;
  padding: 11px 12px;
  border-radius: 12px;
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.5;
}
.password-grid { display: grid; gap: 2px; }
.confirm-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: #c8d3dc; font-size: 12px; line-height: 1.45; }
.confirm-row input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.secondary-btn { background: #2a3746; margin-top: 10px; }
.secondary-btn:hover { background: #34465a; }
