:root {
  --bg: #0c1420;
  --bg-soft: #162435;
  --panel: #111a26;
  --panel-strong: #0f1823;
  --panel-border: rgba(152, 170, 193, 0.18);
  --text: #edf2f8;
  --muted: #96a5b8;
  --muted-strong: #c7d2df;
  --accent: #3f7ee8;
  --accent-deep: #2f67c2;
  --danger: #d65e69;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius-xl: 0;
  --radius-lg: 0;
  --radius-md: 0;
  --font-ui: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: linear-gradient(180deg, #0e1825 0%, #0b121b 100%);
  font-family: var(--font-ui);
}

body {
  position: relative;
  overflow-x: hidden;
}

.backdrop-c {
  right: 10%;
  top: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(108, 229, 177, 0.18), rgba(108, 229, 177, 0));
}

.login-body {
  display: grid;
  place-items: center;
  padding: 44px 20px;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  width: min(1120px, 100%);
  min-height: 640px;
  background: #0f1823;
  border: 1px solid rgba(148, 165, 189, 0.16);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  border-right: 1px solid rgba(148, 165, 189, 0.14);
  background: linear-gradient(180deg, #17263a 0%, #121f30 100%);
}

.brand-lockup {
  display: block;
  width: min(360px, 100%);
  height: auto;
}

.brand-mark,
.brand-mark-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d1723;
  font-weight: 700;
  background: linear-gradient(180deg, #74c0ff 0%, #3f7ee8 100%);
}

.brand-mark-small {
  width: 54px;
  height: 54px;
  font-size: 22px;
  border-radius: 16px;
}

.eyebrow,
.card-label,
.topbar-label {
  margin: 26px 0 10px;
  color: #8ab1f6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-panel h1,
.form-card h2,
.hero-panel h2,
.topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-copy,
.form-copy,
.hero-copy,
.card-copy,
.panel-list,
.shell-table,
.field-hint {
  color: var(--muted);
}

.form-card {
  position: relative;
  padding: 74px 44px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #0d141d;
}

.form-card h2 {
  margin-top: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 600;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: #121d29;
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder {
  color: #738198;
}

.field input:focus {
  outline: none;
  border-color: rgba(79, 127, 214, 0.7);
  box-shadow: 0 0 0 2px rgba(63, 126, 232, 0.12);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox input {
  accent-color: var(--accent-deep);
}

.field-hint {
  margin: 0;
  min-height: 22px;
  font-size: 13px;
}

.field-hint.is-error {
  color: var(--danger);
}

.primary-button,
.ghost-button {
  appearance: none;
  border: none;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #4f88ea 0%, #356ed7 100%);
  color: #f8fbff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, box-shadow 180ms ease;
  box-shadow: none;
}

.primary-button:hover {
  background: linear-gradient(180deg, #5a91ef 0%, #3f77de 100%);
}

.primary-button[disabled] {
  cursor: wait;
  opacity: 0.92;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.96);
  animation: spin 0.9s linear infinite;
}

.primary-button.is-loading .button-spinner {
  display: inline-block;
}

.brand-copy {
  max-width: 360px;
  margin-top: 44px;
}

.brand-eyebrow,
.form-eyebrow {
  margin: 0 0 14px;
  color: #8ba7c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 600;
}

.brand-subtitle {
  margin: 14px 0 0;
  color: #b7c4d6;
  font-size: 15px;
  line-height: 1.7;
}

.brand-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.brand-list li {
  position: relative;
  padding-left: 16px;
  color: #90a3ba;
  font-size: 14px;
}

.brand-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #4f7bd3;
}

.form-eyebrow {
  color: #97abc4;
}

.form-intro {
  margin: 12px 0 0;
  color: #9eb0c3;
  font-size: 14px;
  line-height: 1.7;
}

.form-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 165, 189, 0.12);
}

.copyright {
  margin: 0;
  color: #7788a1;
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-body {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto 22px;
  padding: 18px 22px;
  border: 1px solid rgba(185, 216, 255, 0.12);
  border-radius: 22px;
  background: rgba(8, 12, 20, 0.64);
  box-shadow: var(--shadow);
}

.topbar-brand,
.topbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-label {
  margin: 0 0 6px;
}

.topbar h1 {
  font-size: 22px;
}

#user-pill {
  color: var(--muted-strong);
  font-size: 14px;
}

.ghost-button {
  padding: 12px 16px;
  border: 1px solid rgba(153, 194, 255, 0.14);
  background: rgba(16, 27, 42, 0.82);
  color: var(--text);
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(185, 216, 255, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(11, 23, 39, 0.86), rgba(7, 12, 20, 0.74)),
    linear-gradient(135deg, rgba(48, 115, 255, 0.12), rgba(108, 229, 177, 0.08));
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 700px;
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.hero-metrics article,
.panel-card {
  border: 1px solid rgba(185, 216, 255, 0.1);
  border-radius: 22px;
  background: var(--panel);
}

.hero-metrics article {
  padding: 16px 18px;
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.panel-card {
  padding: 24px;
}

.panel-card h3 {
  margin: 0;
  font-size: 24px;
}

.panel-list {
  margin: 18px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.panel-card-wide {
  grid-column: span 3;
  background:
    linear-gradient(135deg, rgba(11, 23, 39, 0.9), rgba(7, 12, 20, 0.78)),
    linear-gradient(135deg, rgba(121, 212, 255, 0.08), rgba(48, 115, 255, 0.06));
}

.shell-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 18px;
}

.shell-table div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 25, 39, 0.82);
}

.shell-table span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shell-table strong {
  color: var(--text);
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .login-shell,
  .hero-panel,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .panel-card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .login-shell {
    border-radius: 0;
  }

  .brand-panel,
  .form-card,
  .hero-panel,
  .panel-card,
  .topbar {
    padding: 24px;
  }

  .dashboard-body {
    padding: 16px;
  }

  .topbar,
  .topbar-brand,
  .topbar-user {
    flex-direction: column;
    align-items: flex-start;
  }

  .shell-table {
    grid-template-columns: 1fr;
  }
}
