:root {
  --bg: #f4f8ff;
  --panel: #ffffff;
  --panel-border: #d9e4fb;
  --text: #0f1c35;
  --muted: #5a6f97;
  --accent: #157a6e;
  --danger: #cc2f4e;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Poppins", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: radial-gradient(circle at 10% 10%, #d8e9ff, #f7fbff 55%);
  min-height: 100vh;
}

body, h1, h2, h3, p, label, input, button, table, th, td {
  font-family: var(--sans);
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.4;
}

.bg-shape-a {
  width: 300px;
  height: 300px;
  background: #8ae9db;
  top: -120px;
  right: -120px;
}

.bg-shape-b {
  width: 260px;
  height: 260px;
  background: #8fb4ff;
  bottom: -100px;
  left: -100px;
}

.topbar {
  padding: 24px 28px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 12px;
}

h1 { margin: 0; font-size: 30px; font-weight: 600; }
h2, h3 { margin: 0 0 14px; font-weight: 600; }

.container { padding: 0 24px 36px; }

.panel {
  background: color-mix(in oklab, var(--panel), white 2%);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.login-panel { max-width: 520px; margin: 40px auto; }
.login-panel {
  max-width: 1512px;
  width: calc(100vw - 48px);
  margin: 16px auto 24px;
  padding: 0;
  background: #efefef;
  overflow: hidden;
}

.login-shell {
  min-height: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-left,
.login-right {
  padding: 56px 64px;
}

.login-left {
  border-right: 1px solid #dfdfdf;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  width: 560px;
  max-width: 100%;
  height: auto;
}

.hero-placeholder {
  flex: 1;
  min-height: 580px;
  border-radius: 20px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  object-fit: contain;
}

.login-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 120px;
}

.login-right h2 {
  font-size: 50px;
  margin-bottom: 40px;
  color: #1f1f1f;
  font-weight: 600;
}

.login-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.login-form label {
  color: #666;
  font-size: 40px;
  font-weight: 500;
}

.login-form input {
  margin-top: 10px;
  height: 75px;
  border-radius: 7px;
  border: 1px solid #d5d5d5;
  font-size: 24px;
  background: white;
}

.login-submit {
  margin-top: 24px;
  height: 42px;
  border-radius: 999px;
  background: #ff4400;
  font-size: 26px;
  letter-spacing: 0.08em;
  padding: 0 36px;
  align-self: center;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d2def8;
  background: linear-gradient(145deg, #eef4ff, #ffffff);
}

.stat .k { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.stat .v { font-size: 22px; font-weight: 700; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid.single, .form-grid.single-row { grid-template-columns: 1fr; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.check { flex-direction: row; align-items: center; gap: 8px; }
.muted { color: var(--muted); margin: 0 0 10px; font-size: 13px; }

input, button {
  font-family: var(--sans);
  border-radius: 10px;
  border: 1px solid #345081;
}

input {
  padding: 10px;
  background: #ffffff;
  color: var(--text);
}

button {
  background: linear-gradient(90deg, #3a67df 0%, #2eb4a2 100%);
  color: white;
  padding: 12px 28px;
  cursor: pointer;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  letter-spacing: 0;
}

button.ghost {
  background: linear-gradient(90deg, #3a67df 0%, #2eb4a2 100%);
  border: 0;
  color: white;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result {
  margin-top: 10px;
  background: #f7faff;
  border: 1px solid #d5e2fb;
  border-radius: 10px;
  padding: 10px;
  color: #224276;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th, .table td {
  text-align: left;
  border-bottom: 1px solid #dee7fa;
  padding: 8px 6px;
}

.table th { color: var(--muted); font-weight: 500; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #edf3ff;
  border: 1px solid #bbcff7;
}

.error { color: var(--danger); font-family: var(--mono); font-size: 12px; }

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .login-left {
    border-right: 0;
    border-bottom: 1px solid #dfdfdf;
  }
  .login-right h2 {
    font-size: 34px;
  }
  .login-form label {
    font-size: 24px;
  }
  .login-form input {
    height: 52px;
    font-size: 18px;
  }
  .grid.two, .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
