:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #0b0b0b;
  --white: #f6f6f3;
  --muted: #8e8e89;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
}


* { box-sizing: border-box; }
html { min-width: 320px; background: var(--black); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.login-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.12fr) minmax(480px, 0.88fr);
  overflow: hidden;
  background: var(--black);
}
.brand-panel, .form-panel { position: relative; min-height: 100svh; }
.brand-panel {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  padding: 38px clamp(38px, 5vw, 80px) 32px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 26% 36%, rgba(255,255,255,.065), transparent 32%),
    linear-gradient(145deg, #111 0%, #060606 48%, #030303 100%);
}
.brand-panel::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.brand-header, .brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; letter-spacing: .16em; }
.brand-logo {
  width: 36px;
  height: 36px;
  margin-right: 13px;
  border-radius: 50%;
  object-fit: cover;
  filter: invert(1);
}
.brand-name { font-size: 1rem; font-weight: 700; }
.brand-product {
  margin-left: 9px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .24em;
}
.access-pill {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b4b4af;
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0f0ec;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.brand-message {
  position: relative;
  z-index: 2;
  max-width: 710px;
  margin: auto 0;
  padding: 70px 0 100px;
}
.eyebrow {
  margin: 0 0 22px;
  color: #a5a5a0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .24em;
}
.brand-message h1 {
  margin: 0;
  font-size: clamp(3.35rem, 5.8vw, 6.25rem);
  font-weight: 400;
  letter-spacing: -.066em;
  line-height: .96;
}
.brand-message h1 span { color: #858580; }
.brand-copy {
  max-width: 530px;
  margin: 32px 0 0;
  color: #9b9b96;
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  line-height: 1.65;
}
.building-graphic {
  position: absolute;
  z-index: 1;
  right: -10px;
  bottom: 0;
  left: 38%;
  height: 43%;
  opacity: .2;
  pointer-events: none;
}
.building {
  position: absolute;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 25px 18px;
  border: 1px solid rgba(255,255,255,.38);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}
.building i { width: 19px; height: 10px; border: 1px solid rgba(255,255,255,.35); }
.building-one { right: 5%; width: 180px; height: 76%; }
.building-two { right: 34%; width: 165px; height: 58%; }
.building-three { right: 64%; width: 145px; height: 42%; grid-template-columns: repeat(2, 1fr); }
.brand-footer {
  color: #686864;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px clamp(44px, 6vw, 102px) 30px;
  background: var(--panel);
}
.form-panel::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.025), transparent 28%);
  content: "";
  pointer-events: none;
}
.form-wrap { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: auto; }
.form-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.form-heading > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: .93rem; }
.login-form { margin-top: 42px; }
.field-group + .field-group { margin-top: 24px; }
.field-group label, .label-row { color: #cececa; font-size: .78rem; font-weight: 600; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row a { color: #8f8f8a; font-weight: 400; transition: color 160ms ease; }
.label-row a:hover, .form-footer a:hover { color: var(--white); }
.field-control {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0e0e0e;
  color: #6f6f6a;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.field-control:focus-within {
  border-color: rgba(255,255,255,.45);
  background: #111;
  box-shadow: 0 0 0 3px rgba(255,255,255,.035);
}
.field-control > svg { flex: 0 0 auto; width: 19px; height: 19px; margin-right: 13px; }
.field-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: .9rem;
}
.field-control input::placeholder { color: #5f5f5b; }
.password-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-right: -8px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #777772;
  cursor: pointer;
  place-items: center;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--white); }
.password-toggle svg { width: 19px; height: 19px; grid-area: 1 / 1; }
.eye-closed, .password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.remember-control {
  display: flex;
  width: max-content;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  color: #8f8f8a;
  font-size: .78rem;
  cursor: pointer;
}
.remember-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.remember-control > span {
  display: grid;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: #080808;
  place-items: center;
  transition: background 160ms ease, border-color 160ms ease;
}
.remember-control svg { width: 10px; opacity: 0; transition: opacity 120ms ease; }
.remember-control input:checked + span { border-color: var(--white); background: var(--white); }
.remember-control input:checked + span svg { opacity: 1; }
.remember-control input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }
.submit-button {
  display: flex;
  width: 100%;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 0 20px 0 22px;
  border: 1px solid var(--white);
  border-radius: 3px;
  background: var(--white);
  color: #080808;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.submit-button:hover:not(:disabled) { background: #d8d8d3; transform: translateY(-1px); }
.submit-button:active:not(:disabled) { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .68; }
.submit-button svg { width: 20px; height: 20px; }
.form-message { min-height: 18px; margin: 14px 0 0; color: #9d9d98; font-size: .76rem; line-height: 1.5; }
.form-message[data-state="error"] { color: #ff9a9a; }
.form-message[data-state="success"] { color: #c9c9c9; }
.form-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  color: #5d5d59;
  font-size: .67rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-separator { width: 2px; height: 2px; border-radius: 50%; background: #5d5d59; }
.mobile-brand { display: none; }

@media (max-width: 1050px) {
  .login-shell { grid-template-columns: minmax(0, .95fr) minmax(450px, 1.05fr); }
  .brand-message h1 { font-size: clamp(3rem, 5.8vw, 4.75rem); }
  .building-graphic { left: 22%; }
}
@media (max-width: 780px) {
  .login-shell { display: block; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100svh; padding: 28px 24px 24px; }
  .mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; letter-spacing: .16em; }
  .mobile-brand .brand-logo { width: 32px; height: 32px; margin-right: 11px; }
  .mobile-brand span { font-size: .9rem; font-weight: 700; }
  .mobile-brand b {
    margin-left: 8px;
    padding-left: 9px;
    border-left: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: .59rem;
    letter-spacing: .22em;
  }
  .form-wrap { margin: auto; padding: 54px 0 70px; }
  .form-footer { margin-top: 0; }
}
@media (max-width: 420px) {
  .form-panel { padding-inline: 20px; }
  .form-heading h2 { font-size: 2rem; }
  .login-form { margin-top: 34px; }
  .label-row { align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
