:root {
  color-scheme: light;
  --bg: #edf5f8;
  --panel: #ffffff;
  --panel-soft: #f4f9fb;
  --line: #c9dbe3;
  --text: #102f3e;
  --muted: #58717d;
  --cyan: #086f88;
  --mint: #087563;
  --orange: #c85b17;
  --danger: #b4233c;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body {
  background:
    radial-gradient(circle at 18% 15%, rgba(8, 111, 136, .12), transparent 34%),
    radial-gradient(circle at 85% 82%, rgba(200, 91, 23, .1), transparent 31%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.shell {
  width: min(100% - 32px, 520px);
  min-height: 100vh;
  margin: auto;
  padding: 42px 0;
  display: grid;
  align-content: center;
  gap: 22px;
}

.brand { display: flex; align-items: center; justify-content: center; gap: 13px; }
.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  filter: drop-shadow(0 9px 16px rgba(18, 65, 83, .2));
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: .16em; }
.brand span {
  margin-top: 5px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
}

.card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, #ffffff, #f8fbfc);
  box-shadow: 0 28px 70px rgba(23, 67, 84, .15);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
}
.status-dot {
  position: absolute;
  right: 30px;
  top: 32px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(8, 117, 99, .12);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 {
  max-width: 390px;
  margin: 0;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.lead { margin: 16px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }
label {
  display: block;
  margin-bottom: 8px;
  color: #365766;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid #8eb2bf;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(22, 62, 78, .06), 0 5px 14px rgba(22, 62, 78, .07);
  overflow: hidden;
}
.password-row:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(8, 111, 136, .14);
}
input {
  min-width: 0;
  height: 54px;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 650 17px ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .05em;
}
input::placeholder { color: #718a96; letter-spacing: 0; }
.icon-button {
  width: 68px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #e5f0f4;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.icon-button:hover { background: #deedf2; }
.turnstile { min-height: 67px; margin: 20px 0 5px; display: flex; justify-content: center; }
.message { min-height: 20px; margin: 8px 0; color: var(--danger); font-size: 12px; line-height: 1.45; }
.message.ok { color: var(--mint); }
button, .link-button { font: inherit; }
.primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(8, 111, 136, .2);
}
.primary:hover { filter: brightness(.94); }
.primary:disabled { cursor: wait; filter: saturate(.4); opacity: .55; }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(8, 111, 136, .28);
  outline-offset: 3px;
}

.profile { padding-top: 4px; }
.profile h2 { margin: 0 0 14px; font-size: 28px; letter-spacing: -.03em; }
.profile-links { display: grid; gap: 8px; margin: 0 0 22px; }
.profile-links a {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
  color: var(--cyan);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.footnote {
  margin: 0 auto;
  max-width: 440px;
  color: #5e7783;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .shell { width: min(100% - 20px, 520px); padding: 20px 0; }
  .card { padding: 26px 20px; border-radius: 21px; }
  .status-dot { right: 22px; top: 25px; }
  .brand img { width: 48px; height: 48px; }
}
