:root {
  color-scheme: light dark;
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f0f3f9;
  --ink: #172033;
  --muted: #586174;
  --line: #dce2ed;
  --brand: #1f5eea;
  --brand-hover: #174bc0;
  --focus: #ffb400;
  --shadow: 0 18px 45px rgb(28 42 70 / 12%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #10141d;
    --surface: #191f2c;
    --surface-muted: #222a39;
    --ink: #f3f6fc;
    --muted: #b4bdcd;
    --line: #344055;
    --brand: #79a6ff;
    --brand-hover: #a7c3ff;
    --focus: #ffd166;
    --shadow: 0 18px 45px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 30rem), var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

button { cursor: pointer; }

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.card {
  width: min(100%, 530px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.unlock-card { padding: clamp(26px, 6vw, 42px); }
.contacts-card { padding: clamp(22px, 5vw, 34px); }

.badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: white;
  font-size: 30px;
  font-weight: 500;
}

.eyebrow {
  margin: 22px 0 7px;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.35rem); letter-spacing: -.035em; }
.intro { margin: 12px 0 25px; color: var(--muted); line-height: 1.55; }

form { display: grid; gap: 10px; }
label { font-size: .92rem; font-weight: 700; }

.password-row { display: flex; gap: 8px; }
input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.primary-button, .secondary-button, .icon-button, .call-button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}

.primary-button { margin-top: 5px; background: var(--brand); color: white; }
.primary-button:hover { background: var(--brand-hover); }
.primary-button:disabled { cursor: wait; opacity: .7; }
.secondary-button, .icon-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.icon-button { min-width: 64px; padding: 0 10px; font-size: .85rem; }

.status { min-height: 1.3em; margin: 13px 0 0; color: #b42318; font-size: .92rem; }
.notice { margin-top: 23px; padding: 14px; border-radius: 13px; background: var(--surface-muted); color: var(--muted); font-size: .85rem; line-height: 1.5; }
.notice strong { color: var(--ink); }

.contacts-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.contacts-header .eyebrow { margin-top: 0; }
.secondary-button { flex: 0 0 auto; padding: 0 14px; }
.contacts-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
}

.contact-name { margin: 0 0 4px; font-weight: 750; }
.contact-number { margin: 0; color: var(--muted); font-size: .93rem; }
.call-button { display: grid; min-width: 70px; place-items: center; padding: 0 13px; background: var(--brand); color: white; }
.call-button:hover { background: var(--brand-hover); }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.noscript { padding: 16px; text-align: center; }

@media (max-width: 380px) {
  .contact { align-items: stretch; flex-direction: column; }
  .call-button { min-height: 42px; }
  .contacts-header { flex-direction: column; }
}
