@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap");

:root {
  --bg: #f4f4f4;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --ink: #05114b;
  --muted: #60709a;
  --line: rgba(2, 23, 147, 0.1);
  --accent: #021793;
  --accent-strong: #031062;
  --accent-soft: #e7ebff;
  --support: #3ea76b;
  --support-soft: rgba(62, 167, 107, 0.12);
  --danger: #b04b3d;
  --warning: #d68b26;
  --shadow: 0 28px 60px rgba(2, 23, 147, 0.1);
  font-family:
    "Lato",
    "Helvetica Neue",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(2, 23, 147, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(62, 167, 107, 0.12), transparent 32%),
    var(--bg);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2.4vw, 30px);
}

.auth-layout {
  width: min(1280px, 100%);
  min-height: min(860px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(440px, 520px);
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
}

.brand-panel,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(32px, 3.6vw, 46px);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(155deg, #021793 0%, #072caa 62%, #0a3dbd 100%);
  color: #fff;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(62, 167, 107, 0.18);
  filter: blur(8px);
}

.brand-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.94;
  font-weight: 900;
}

.brand-copy {
  margin: 22px 0 28px;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.72;
  font-size: 17px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
}

.brand-card {
  position: relative;
  z-index: 1;
  min-height: 180px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.brand-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.brand-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.brand-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.auth-card {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 42px);
  backdrop-filter: blur(14px);
}

.auth-copy {
  margin: 14px 0 28px;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.6;
}

.auth-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.98;
  font-weight: 900;
  color: var(--ink);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.field span {
  color: var(--ink);
}

.input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 246, 253, 0.92);
  color: var(--ink);
  padding: 15px 16px;
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input:focus {
  outline: none;
  border-color: rgba(2, 23, 147, 0.35);
  box-shadow: 0 0 0 4px rgba(2, 23, 147, 0.12);
}

.auth-submit {
  margin-top: 10px;
}

.auth-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
  padding: 26px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 244, 253, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar-copy {
  max-width: 720px;
}

.topbar-text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.76);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 40px;
  line-height: 0.96;
  font-weight: 900;
}

h2,
h3 {
  color: var(--accent);
  font-weight: 900;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill,
.info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 6px 4px 0;
}

.hero-copy h2 {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  max-width: 12ch;
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.info-pill {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 20px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 252, 255, 0.94));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 255, 1));
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 23, 147, 0.24);
  box-shadow: 0 18px 26px rgba(2, 23, 147, 0.08);
}

.card.is-active {
  border-color: rgba(2, 23, 147, 0.4);
  box-shadow: 0 16px 30px rgba(2, 23, 147, 0.14);
  background:
    linear-gradient(180deg, rgba(234, 239, 255, 0.96), rgba(255, 255, 255, 1));
}

.card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.json-view {
  overflow: auto;
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(3, 16, 98, 0.98), rgba(2, 23, 147, 0.96));
  color: #e6ecff;
  min-height: 220px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-block {
  margin-top: 18px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 16px 26px rgba(2, 23, 147, 0.18);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-secondary {
  background: white;
  color: var(--accent);
  border: 1px solid rgba(2, 23, 147, 0.16);
  box-shadow: none;
}

.hidden {
  display: none;
}

.alert-high {
  border-left: 5px solid var(--danger);
}

.alert-medium {
  border-left: 5px solid var(--warning);
}

.alert-low {
  border-left: 5px solid var(--support);
}

@media (max-width: 1180px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .auth-shell {
    align-items: stretch;
  }

  .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-card {
    order: -1;
  }

  .brand-panel,
  .auth-card {
    min-height: auto;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-band,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-pills,
  .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-shell,
  .shell {
    padding: 16px;
  }

  .brand-panel,
  .auth-card,
  .panel,
  .topbar {
    padding: 22px;
    border-radius: 24px;
  }

  .brand-title {
    max-width: none;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: none;
  }

  h1 {
    font-size: 32px;
  }
}
