:root {
  color-scheme: dark;
  --bg: #071224;
  --panel: #0d2038;
  --line: #2a4462;
  --muted: #aab9cc;
  --blue: #4a8dff;
  --green: #35d07f;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: #f4f7ff;
  background:
    radial-gradient(circle at 50% -10%, #24558b66, transparent 42%),
    linear-gradient(155deg, #08172b, #050d1a);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 560px);
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(145deg, #102844f2, #09182cf2);
  box-shadow: 0 30px 90px #0008;
}

.login-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  box-shadow: 0 18px 38px #0008;
}

.eyebrow {
  margin: 24px 0 8px;
  color: #88a5c9;
  letter-spacing: .17em;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -.035em;
}

.intro {
  margin: 18px auto 24px;
  color: #c1ccda;
  font-size: 16px;
  line-height: 1.65;
}

.security-note,
.help-box {
  border: 1px solid #2e5872;
  border-radius: 16px;
  background: #071a2d;
  text-align: left;
}

.security-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px;
}

.security-note span { font-size: 24px; }
.security-note p,
.help-box p { margin: 0; color: var(--muted); line-height: 1.55; }
.security-note strong,
.help-box strong { color: #edf5ff; }

.primary-action {
  width: 100%;
  margin: 22px 0 10px;
  padding: 15px 20px;
  border: 1px solid #69a3ff;
  border-radius: 13px;
  color: white;
  background: #2468d5;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:hover:not(:disabled) { filter: brightness(1.12); }
.primary-action:disabled { cursor: wait; opacity: .55; }
.status { min-height: 22px; margin: 0 0 18px; color: #9fb1c7; }
.status.error { color: #ffb2b2; }

.password-panel { margin-top: 24px; text-align: left; }
.password-panel[hidden] { display: none; }
.password-panel form { margin-top: 22px; }
.password-panel label {
  display: block;
  margin-top: 16px;
  color: #e7eef8;
  font-size: 15px;
  font-weight: 750;
}
.password-panel input {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #3e6082;
  border-radius: 11px;
  color: white;
  background: #061426;
  font: inherit;
  font-size: 18px;
}
.password-panel input:focus {
  border-color: var(--blue);
  outline: 3px solid #4a8dff33;
}
.password-panel .primary-action { margin-bottom: 12px; }
.field-help { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.help-box { padding: 16px 18px; }
.help-box strong { display: block; margin-bottom: 6px; }

@media (max-width: 560px) {
  .login-shell { padding: 12px; }
  .login-card { padding: 28px 20px; border-radius: 20px; }
  .login-logo { width: 86px; height: 86px; }
}
