:root {
  color-scheme: dark;
  --bg: #07111e;
  --surface: #101c2e;
  --surface-soft: #14243a;
  --line: #2a3b54;
  --text: #f0f6ff;
  --muted: #94a6bd;
  --blue: #55a9ff;
  --green: #3bd59a;
  --red: #ff747d;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(44, 107, 178, .38), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(32, 112, 91, .16), transparent 30%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.login-shell {
  width: min(1060px, calc(100% - 40px));
  min-height: 650px;
  margin: max(32px, 6vh) auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  overflow: hidden;
  border: 1px solid rgba(102, 137, 177, .24);
  border-radius: 24px;
  background: rgba(12, 23, 39, .92);
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 56px;
  background:
    linear-gradient(145deg, rgba(34, 80, 132, .34), rgba(8, 19, 33, .12)),
    #0d1a2b;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 50%, rgba(73, 151, 230, .06));
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(91, 176, 255, .48);
  border-radius: 15px;
  background: rgba(75, 161, 247, .12);
  color: #acd7ff;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-copy { position: relative; z-index: 1; margin-top: 84px; max-width: 500px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
h1, h2 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(40px, 6vw, 62px); line-height: 1.04; }
h2 { font-size: 30px; line-height: 1.15; }
.intro { max-width: 480px; margin: 22px 0 0; color: #b8c6d8; font-size: 17px; }

.principles { position: relative; z-index: 1; display: grid; gap: 17px; margin-top: auto; padding-top: 60px; }
.principles div { display: grid; grid-template-columns: 10px 1fr; column-gap: 12px; align-items: center; }
.principles strong { font-size: 14px; }
.principles small { grid-column: 2; margin-top: 1px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(59, 213, 154, .85); }

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  background: rgba(15, 27, 45, .92);
}

.form-card { width: 100%; max-width: 390px; margin: auto; }
.form-lead { margin: 12px 0 32px; color: var(--muted); }
form { display: grid; gap: 11px; }
label { color: #cbd8e8; font-size: 13px; font-weight: 700; }

input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0a1524;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(85, 169, 255, .13); }
.label-row { display: flex; justify-content: space-between; margin-top: 8px; }
.password-field { position: relative; }
.password-field input { padding-right: 67px; }
.password-field button {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 35px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9fc8ef;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.password-field button:hover, .password-field button:focus-visible { background: rgba(85, 169, 255, .1); outline: none; }

.submit-button {
  height: 50px;
  margin-top: 14px;
  border: 1px solid #69b7ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #50a7fa, #3188da);
  color: #061321;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(38, 136, 221, .23);
}
.submit-button:hover { filter: brightness(1.06); }
.submit-button:disabled { cursor: wait; filter: grayscale(.2); opacity: .72; }

.alert {
  margin-bottom: 6px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 116, 125, .45);
  border-radius: 9px;
  background: rgba(255, 116, 125, .1);
  color: #ffc4c8;
  font-size: 13px;
}

.session-note { display: flex; gap: 11px; margin-top: 29px; padding-top: 22px; border-top: 1px solid var(--line); }
.session-note > span { color: var(--green); font-size: 11px; line-height: 24px; }
.session-note p { margin: 0; color: var(--muted); font-size: 12px; }
.session-note strong { display: block; margin-bottom: 2px; color: #cdd9e8; font-size: 12px; }
.domain-note { margin: 26px 0 0; color: #71849c; text-align: center; font-size: 11px; letter-spacing: .04em; }

@media (max-width: 800px) {
  .login-shell { width: min(560px, calc(100% - 28px)); grid-template-columns: 1fr; margin: 20px auto; }
  .brand-panel { min-height: auto; padding: 32px; }
  .brand-copy { margin-top: 40px; }
  .principles { display: none; }
  .form-panel { padding: 38px 32px; }
}

@media (max-width: 440px) {
  .login-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .brand-panel { padding: 26px 22px; }
  .brand-copy { margin-top: 30px; }
  h1 { font-size: 38px; }
  .intro { font-size: 15px; }
  .form-panel { padding: 34px 22px; }
  h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
