:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e1ec;
  --blue: #2563eb;
  --navy: #062247;
  --navy-soft: #0b3b69;
  --green: #22c55e;
  --red: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

body,
body * {
  font-weight: 400 !important;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 500px) 1fr;
  gap: 34px;
  min-height: 100vh;
  padding: 28px;
}

.login-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 56px);
  padding: 80px 8px 0;
}

.brand-lockup {
  display: grid;
  gap: 10px;
  align-content: start;
  width: min(385px, 100%);
  margin: 0 auto;
}

.brand-lockup img {
  width: 128px;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 12px;
}

.login-card {
  align-self: center;
  width: min(385px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro {
  margin: 8px 0 30px;
  color: var(--muted);
  line-height: 1.45;
}

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

label {
  color: #374151;
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

button {
  min-height: 44px;
  margin-top: 10px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

button:hover {
  background: #1d4ed8;
}

button:active {
  transform: translateY(1px);
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message,
.field-error {
  padding: 10px 12px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  font-size: 13px;
}

.message.error,
.field-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.secondary-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  text-decoration: none;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(385px, 100%);
  margin: 0 auto;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #166534;
}

.status-dot::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.visual-panel {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18px 18px, rgba(96, 165, 250, .25) 1px, transparent 1.5px),
    linear-gradient(135deg, var(--navy), #02152e 62%, var(--navy-soft));
  background-size: 46px 46px, auto;
  border-radius: 22px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, .18);
}

.visual-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .35));
}

.visual-brand {
  position: relative;
  z-index: 1;
  padding: 64px 80px;
}

.visual-brand img {
  width: 150px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.visual-copy {
  position: absolute;
  z-index: 1;
  left: 80px;
  bottom: 140px;
  width: min(460px, 55%);
  color: #ffffff;
}

.visual-copy p {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.18;
}

.visual-copy span {
  display: block;
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
  line-height: 1.55;
}

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

  .login-panel {
    min-height: auto;
    padding: 36px 0;
  }

  .visual-panel {
    display: none;
  }
}
