:root {
  color-scheme: dark;
  --bg: #06100f;
  --surface: rgb(16 33 34 / 78%);
  --surface-strong: #102122;
  --ink: #f4f8f7;
  --ink-soft: #d4dfdc;
  --muted: #8fa5a0;
  --line: rgb(196 226 216 / 14%);
  --line-strong: rgb(196 226 216 / 24%);
  --teal: #42d3b0;
  --teal-deep: #14987d;
  --red: #ff7068;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  position: relative;
  isolation: isolate;
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 26px clamp(22px, 5vw, 72px) 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(720px, 62vw);
  aspect-ratio: 16 / 10;
  left: -130px;
  bottom: -210px;
  border: 1px solid rgb(196 226 216 / 7%);
  transform: rotate(-7deg);
}

.login-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1px;
  height: 70vh;
  top: 15vh;
  left: 50%;
  background: rgb(196 226 216 / 5%);
}

.login-header,
.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgb(66 211 176 / 14%));
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 16px;
}

.brand-lockup div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.private-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 3%);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.private-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgb(66 211 176 / 10%);
}

.login-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(46px, 8vw, 120px);
}

.login-intro {
  position: relative;
  min-width: 0;
  max-width: 690px;
  padding: 38px 0;
}

.overline,
.card-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-intro h1,
.auth-card h2,
.login-intro p,
.auth-card p {
  margin-top: 0;
}

.login-intro h1 {
  max-width: 650px;
  margin-bottom: 21px;
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 1.03;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
}

.intro-stats {
  display: flex;
  gap: 10px;
}

.intro-stats div {
  min-width: 155px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.intro-stats strong,
.intro-stats span {
  display: block;
}

.intro-stats strong {
  color: var(--teal);
  font-size: 19px;
}

.intro-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.pitch-mark {
  position: absolute;
  z-index: -1;
  width: min(520px, 75vw);
  aspect-ratio: 16 / 10;
  left: -70px;
  bottom: -120px;
  border: 1px solid rgb(255 255 255 / 5%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.pitch-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgb(255 255 255 / 5%);
}

.pitch-circle {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.auth-card {
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 36px 100px rgb(0 0 0 / 42%);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.auth-card-head {
  margin-bottom: 28px;
}

.card-kicker {
  margin-bottom: 9px;
}

.auth-card h2 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.15;
}

.auth-card-head > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

form {
  display: grid;
  gap: 9px;
}

label {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

input {
  width: 100%;
  height: 49px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgb(0 0 0 / 18%);
  font-size: 14px;
}

input::placeholder {
  color: #6f8580;
}

input:focus {
  outline: 3px solid rgb(66 211 176 / 14%);
  border-color: rgb(66 211 176 / 60%);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 82px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  height: 35px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 5%);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgb(255 255 255 / 8%);
}

.password-toggle:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgb(66 211 176 / 18%);
  outline-offset: 2px;
}

.submit-button {
  height: 49px;
  margin-top: 5px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  color: #06100f;
  background: var(--teal);
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.submit-button:hover {
  background: #72e2c6;
}

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

.submit-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #ff9f99;
  font-size: 11px;
  font-weight: 800;
}

.access-help {
  margin: 23px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.login-footer {
  color: #667d78;
  font-size: 10px;
}

@media (max-width: 900px) {
  .login-page {
    overflow: visible;
  }

  .login-page::after {
    display: none;
  }

  .login-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-intro {
    max-width: none;
    padding: 44px 0 10px;
  }

  .login-intro h1 {
    max-width: 720px;
  }

  .auth-card {
    max-width: 560px;
    justify-self: center;
  }

  .pitch-mark {
    display: none;
  }
}

@media (max-width: 560px) {
  .login-page {
    padding: 18px 16px;
    gap: 18px;
  }

  .brand-lockup div > span,
  .private-badge {
    display: none;
  }

  .login-intro {
    padding-top: 14px;
  }

  .login-intro h1 {
    margin-bottom: 0;
    font-size: 31px;
    line-height: 1.08;
  }

  .overline {
    margin-bottom: 10px;
  }

  .intro-copy,
  .intro-stats {
    display: none;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .login-footer {
    justify-content: center;
    text-align: center;
  }

  .login-footer span:last-child {
    display: none;
  }
}
