:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #667085;
  --line: #dce3ed;
  --primary: #2457d6;
  --primary-dark: #1844b4;
  --success: #067647;
  --success-bg: #ecfdf3;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --shadow: 0 18px 45px rgba(20, 34, 66, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e9efff 0, transparent 34rem), var(--bg);
  color: var(--text);
}

button, input { font: inherit; }

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

.shell {
  width: min(100%, 980px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, #386be5, #1d45b0);
  box-shadow: 0 10px 24px rgba(36, 87, 214, .26);
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; }
h2 { margin-bottom: 6px; font-size: 1.18rem; }
.subtitle, .muted { color: var(--muted); }
.subtitle { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
  gap: 20px;
  align-items: start;
}

.card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(220,227,237,.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.login-card { width: min(100%, 440px); text-align: center; }
.login-card .logo { margin: 0 auto 16px; }
.login-card form { text-align: left; margin-top: 24px; }

.field { display: grid; gap: 8px; margin-bottom: 17px; }
label { font-size: .9rem; font-weight: 700; }
input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36,87,214,.12); }

.row { display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.button {
  border: 0;
  border-radius: 11px;
  min-height: 46px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: transform .12s, background .18s;
}
.button:hover { background: var(--primary-dark); }
.button:active { transform: translateY(1px); }
.button.secondary { background: #e9eef8; color: #344054; min-height: 40px; }
.button.secondary:hover { background: #dfe6f2; }
.full { width: 100%; }

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: .92rem;
  border: 1px solid transparent;
}
.alert.success { color: var(--success); background: var(--success-bg); border-color: #abefc6; }
.alert.error { color: var(--danger); background: var(--danger-bg); border-color: #fecdca; }

.status-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.status-item { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; }
.dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px #d1fadf; }
.dot.warning { background: #f79009; box-shadow: 0 0 0 4px #fef0c7; }
.status-item strong { display: block; font-size: .9rem; }
.status-item span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; overflow-wrap: anywhere; }

.internal-note { margin: 20px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.logout { margin: 0; }

@media (max-width: 740px) {
  .page { padding: 18px; place-items: start center; }
  .shell { padding-top: 10px; }
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .card { padding: 21px; border-radius: 17px; }
  .topbar { align-items: flex-start; }
}
