:root {
  --bg: #090b11;
  --panel: #11141d;
  --panel-soft: #151923;
  --line: #272c38;
  --text: #f4f3f7;
  --muted: #979caa;
  --violet: #805ad5;
  --violet-light: #a879ff;
  --violet-soft: #2b1945;
  --danger: #ff6677;
  --danger-soft: rgba(255, 102, 119, .11);
  color-scheme: dark;
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --panel-soft: #f7f8fb;
  --line: #d8dde7;
  --text: #171a22;
  --muted: #636b7a;
  --violet: #6941c6;
  --violet-light: #7447d7;
  --violet-soft: #eee8fb;
  --danger: #bd2e42;
  --danger-soft: #fde9ed;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(460px, 1.08fr);
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(34px, 6vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  color: #f8f6ff;
  background:
    radial-gradient(circle at 20% 18%, rgba(168, 121, 255, .28), transparent 31%),
    linear-gradient(145deg, #171127 0%, #100d1a 56%, #090b11 100%);
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.brand-panel::before {
  inset: 8% -34% 8% 44%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.brand-panel::after {
  top: 50%;
  right: 0;
  width: 56%;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.pitch-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px 6px 17px 6px;
  color: white;
  background: linear-gradient(145deg, var(--violet-light), #6631b8);
  box-shadow: 0 18px 54px rgba(128, 90, 213, .3);
  transform: rotate(-2deg);
}

.pitch-mark__k {
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: 34px;
  font-weight: 800;
  font-style: italic;
  transform: rotate(2deg);
}

.eyebrow,
.privacy-note {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet-light);
  font-size: 12px;
  font-weight: 750;
}

.brand-copy h1 {
  max-width: 630px;
  margin: 0;
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: clamp(56px, 7.4vw, 104px);
  font-weight: 750;
  line-height: .86;
  letter-spacing: -.055em;
}

.brand-copy > p:last-child {
  max-width: 480px;
  margin: 32px 0 0;
  color: #b8b3c4;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.privacy-note {
  position: absolute;
  left: clamp(34px, 6vw, 82px);
  bottom: 38px;
  margin: 0;
  color: #8e8999;
  font-size: 10px;
}

.privacy-note span {
  margin-right: 7px;
  color: #38d987;
  font-size: 8px;
}

.form-panel {
  position: relative;
  min-height: 100vh;
  padding: 72px clamp(30px, 8vw, 132px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 85% 12%, rgba(128, 90, 213, .08), transparent 24%),
    var(--panel);
}

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

.form-wrap h2 {
  margin: 0;
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}

.form-intro {
  margin: 17px 0 36px;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  margin-top: 22px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 720;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--panel-soft);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input:hover {
  border-color: color-mix(in srgb, var(--line), var(--text) 22%);
}

.field input:focus-visible {
  border-color: var(--violet-light);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet), transparent 78%);
}

.remember {
  margin: 24px 0 26px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.remember input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--violet);
}

.remember strong,
.remember small {
  display: block;
}

.remember strong {
  font-size: 14px;
}

.remember small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: linear-gradient(130deg, var(--violet-light), #6941c6);
  box-shadow: 0 14px 34px rgba(105, 65, 198, .23);
  font-weight: 780;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(105, 65, 198, .3);
}

.submit-button:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--violet-light), white 25%);
  outline-offset: 3px;
}

.error-message {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger), transparent 56%);
  border-radius: 9px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 13px;
  line-height: 1.45;
}

.error-message[hidden] {
  display: none;
}

.theme-toggle {
  position: absolute;
  top: 25px;
  right: 28px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--panel-soft);
  cursor: pointer;
}

@media (max-width: 820px) {
  .login-shell {
    display: block;
  }

  .brand-panel {
    min-height: 250px;
    padding: 34px 26px 42px;
    justify-content: flex-end;
  }

  .pitch-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 28px;
    border-radius: 13px 5px 13px 5px;
  }

  .pitch-mark__k {
    font-size: 26px;
  }

  .brand-copy h1 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .brand-copy > p:last-child,
  .privacy-note {
    display: none;
  }

  .form-panel {
    min-height: calc(100vh - 250px);
    padding: 64px 24px 50px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
