:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #687386;
  --line: #d9e1ea;
  --panel: #ffffff;
  --canvas: #eef3f8;
  --blue: #2467d6;
  --green: #27966f;
  --amber: #c0832f;
  --shadow: 0 20px 60px rgba(30, 47, 72, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(238, 243, 248, 0.94)),
    repeating-linear-gradient(90deg, rgba(36, 103, 214, 0.07) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(39, 150, 111, 0.05) 0 1px, transparent 1px 88px),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(260px, 360px);
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 100vh;
  padding: 32px;
}

.login-panel,
.system-panel {
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    var(--blue);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12);
}

.mark span {
  width: 22px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.18);
}

.eyebrow,
.panel-footer,
.form-row,
.system-header span,
dt {
  color: var(--muted);
  font-size: 13px;
}

.eyebrow,
h1,
h2,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.login-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(36, 103, 214, 0.16);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 8px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.remember span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: #1f5fc8;
}

.panel-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(39, 150, 111, 0.14);
}

.system-panel {
  align-self: center;
  padding: 24px;
}

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

.system-header span {
  color: var(--green);
  font-weight: 700;
}

dl {
  display: grid;
  gap: 14px;
}

dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

dd {
  font-weight: 700;
}

.meter {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf1;
}

.meter span {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--blue);
}

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .login-panel {
    padding: 24px;
  }

  .system-panel {
    display: none;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
