:root {
  color-scheme: light;
  --navy: #172b4d;
  --blue: #155eef;
  --blue-dark: #0b4bc4;
  --green: #16845b;
  --muted: #667085;
  --line: #dfe5ec;
  --surface: #ffffff;
  --background: #eef2f6;
  font-family: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background: var(--background);
}

button, input { font: inherit; }

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
}

.brand-panel {
  min-height: 100vh;
  padding: 48px clamp(36px, 5vw, 72px);
  color: #fff;
  background: #142849;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-lockup img,
.mobile-brand img {
  width: 148px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
}

.brand-lockup p {
  margin: 10px 0 0;
  color: #b9c9e5;
  font-size: 13px;
}

.eyebrow {
  color: #8eb4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-message h1 {
  margin: 18px 0;
  max-width: 580px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-message p {
  margin: 0;
  max-width: 470px;
  color: #c8d4e8;
  font-size: 15px;
  line-height: 1.7;
}

.server-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8d4e8;
  font-size: 12px;
}

.server-state span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43d19e;
  box-shadow: 0 0 0 4px rgba(67, 209, 158, .14);
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--surface);
}

.form-wrap { width: min(100%, 420px); }

.mobile-brand { display: none; }

.form-heading { margin-bottom: 30px; }

.form-heading .eyebrow { color: var(--blue); }

.form-heading h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.form-heading p,
.support-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

label {
  display: block;
  margin: 0 0 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  color: var(--navy);
  background: #fff;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
}

.password-wrap { position: relative; }

.password-wrap input { padding-right: 72px; }

.show-password {
  position: absolute;
  top: 7px;
  right: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled { opacity: .55; cursor: wait; }

.alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f3b4b4;
  border-radius: 6px;
  color: #9f1f25;
  background: #fff1f1;
  font-size: 12px;
  line-height: 1.5;
}

.support-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

[hidden] { display: none !important; }

@media (max-width: 760px) {
  .login-layout { display: block; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; align-items: flex-start; padding: 28px 20px; }
  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 54px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }
  .mobile-brand img { width: 126px; height: 40px; }
  .form-heading h2 { font-size: 24px; }
}
