:root {
  color-scheme: light;
  --ink: #07172f;
  --muted: #667486;
  --line: #d8e4ee;
  --brand-950: #07172f;
  --brand-900: #0b2246;
  --brand-800: #143b7a;
  --brand-700: #1f63c6;
  --brand-600: #2c8ee8;
  --brand-500: #35b9e6;
  --brand-100: #dff3fb;
  --brand-50: #eef6fb;
  --danger: #b42318;
  --success: #176b46;
}
* { 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;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 18%, rgba(53,185,230,.18), transparent 34%),
    linear-gradient(135deg, #f7fcff 0%, #eef6fb 56%, #e4f2fb 100%);
}
a { color: var(--brand-700); font-weight: 800; text-decoration: none; }
a:hover { color: var(--brand-800); }
.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}
.shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1fr 430px;
  min-height: 620px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(201,217,231,.95);
  box-shadow: 0 24px 80px rgba(7,23,47,.16);
  overflow: hidden;
  border-radius: 28px;
}
.brand {
  position: relative;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, var(--brand-950), var(--brand-800) 60%, var(--brand-600));
  color: #fff;
  overflow: hidden;
}
.brand:before {
  content: "";
  position: absolute;
  inset: auto -24% -30% auto;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,185,230,.42), rgba(53,185,230,0) 62%);
}
.brand img { width: 250px; max-width: 82%; position: relative; }
.brand h1 { font-size: 42px; line-height: 1.04; margin: 80px 0 18px; letter-spacing: 0; font-weight: 850; position: relative; }
.brand p { font-size: 17px; line-height: 1.55; max-width: 470px; color: rgba(255,255,255,.84); position: relative; }
.badge { position: relative; align-self: flex-start; padding: 10px 14px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: rgba(255,255,255,.9); font-weight: 800; font-size: 13px; }
.panel { padding: 54px; display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.94); }
.panel h2, .page-card h1 { font-size: 30px; margin: 0 0 8px; }
.sub { margin: 0 0 30px; color: var(--muted); line-height: 1.5; }
.field { display: grid; gap: 8px; margin: 0 0 18px; }
.field span { font-weight: 800; color: #22334d; }
.field input, .field select {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  background: #fbfdff;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(44,142,232,.12); }
.check { display: flex; gap: 10px; align-items: center; color: #40536c; font-weight: 700; }
.check input { width: 18px; height: 18px; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: white;
  font: inherit;
  font-weight: 850;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(31,99,198,.24);
}
button:hover, .button:hover { color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); }
.secondary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.secondary {
  background: #fff;
  color: var(--brand-700);
  border: 1px solid #bdd8ef;
  box-shadow: none;
}
.secondary:hover { background: var(--brand-50); color: var(--brand-800); }
.error, .success {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid;
  line-height: 1.45;
}
.error { background: #fff0f0; color: var(--danger); border-color: #ffd1d1; }
.success { background: #ecfff6; color: var(--success); border-color: #bfe8d2; }
.foot { margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mark { color: var(--brand-700); font-weight: 850; }
.page-wrap { min-height: 100vh; padding: 32px; display: grid; place-items: start center; }
.page-card {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(7,23,47,.12);
  padding: 30px;
}
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-header img { width: 170px; height: 54px; object-fit: contain; object-position: left center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; border-radius: 20px; }
  .brand { min-height: 300px; padding: 34px; }
  .brand h1 { font-size: 34px; margin: 54px 0 14px; }
  .brand img { width: 220px; }
  .panel, .page-card { padding: 28px; }
  .secondary-row, .grid-2 { grid-template-columns: 1fr; }
}
