:root {
  color-scheme: light;
  --ink: #0b2452;
  --muted: #5b6b86;
  --blue: #1769e0;
  --blue-deep: #0b3f91;
  --blue-soft: #eaf3ff;
  --surface: #ffffff;
  --line: #dbe6f5;
  --background: #f4f8fd;
  --success: #147d65;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --shadow: 0 24px 70px rgba(25, 69, 126, 0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 5%, rgba(23,105,224,.10), transparent 30rem),
    radial-gradient(circle at 92% 85%, rgba(61,147,255,.09), transparent 32rem),
    var(--background);
}

a { color: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { width: 245px; max-width: 55vw; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(20,125,101,.10); }
.main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 72px;
  align-items: center;
  padding: 50px 0 80px;
}
.eyebrow {
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue);
}
h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .99;
  letter-spacing: -.045em;
}
.lead {
  margin: 26px 0 0;
  max-width: 690px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: var(--muted);
}
.trust-row { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-chip {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #3d5275;
  font-size: 13px;
}
.login-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(194,211,235,.9);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: white;
  font-weight: 800;
  letter-spacing: -.03em;
}
.login-card h2 { margin: 25px 0 9px; font-size: 27px; letter-spacing: -.02em; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.login-btn {
  margin-top: 28px;
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue), #0754c5);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(23,105,224,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(23,105,224,.25); }
.login-btn:focus-visible { outline: 4px solid rgba(23,105,224,.25); outline-offset: 3px; }
.login-btn svg { width: 19px; height: 19px; }
.card-foot { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 12px; color: #72809a; display: flex; justify-content: space-between; gap: 16px; }
.error-box {
  display: none;
  margin-bottom: 22px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid #f1b9b4;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.45;
}
.error-box.is-visible { display: block; }
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #75849c;
  font-size: 12px;
}
.footer strong { color: #425676; }
@media (max-width: 850px) {
  .main { grid-template-columns: 1fr; gap: 44px; padding-top: 35px; }
  .login-card { max-width: 600px; }
}
@media (max-width: 520px) {
  .header, .main, .footer { width: min(100% - 28px, 1180px); }
  .header { padding-top: 18px; }
  .status span:last-child { display: none; }
  .main { padding-bottom: 50px; }
  .login-card { padding: 25px; border-radius: 22px; }
  .footer { flex-direction: column; }
}
