:root {
  color-scheme: light;
  --canvas: #f4f5fa;
  --surface: #ffffff;
  --line: #e4e6ef;
  --ink: #191c25;
  --muted: #7f8595;
  --violet: #6956e8;
  --violet-dark: #5643d5;
  --violet-soft: #efedff;
  --red: #d63f3f;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(105, 86, 232, .22);
  outline-offset: 2px;
}

svg {
  width: 1em;
  height: 1em;
  display: block;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(540px, 1.1fr);
}

.login-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 68px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(123, 104, 255, .52), transparent 23rem),
    radial-gradient(circle at 12% 92%, rgba(57, 195, 167, .15), transparent 20rem),
    #171a25;
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  align-self: flex-start;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 760;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 10px 25px rgba(105, 86, 232, .28);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.intro-copy {
  max-width: 530px;
  margin-block: auto;
  padding-block: 90px;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #a99eff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.052em;
}

.intro-copy p {
  max-width: 460px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
  line-height: 1.8;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 650;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-list svg {
  width: 14px;
  height: 14px;
  color: #a99eff;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 100% 0, rgba(105, 86, 232, .09), transparent 26rem),
    var(--canvas);
}

.login-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 60px rgba(27, 30, 45, .1);
}

.mobile-brand {
  display: none;
  margin-bottom: 30px;
}

.card-heading .eyebrow {
  margin-bottom: 9px;
  color: var(--violet);
}

.card-heading h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.04em;
}

.card-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

label {
  display: block;
  margin: 28px 0 8px;
  color: #4f5462;
  font-size: 11px;
  font-weight: 750;
}

.input-shell {
  display: flex;
  align-items: center;
  border: 1px solid #d9dce7;
  border-radius: 12px;
  background: #f8f9fc;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.input-shell:focus-within {
  border-color: #a69bf0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(105, 86, 232, .1);
}

.input-shell > svg {
  width: 16px;
  height: 16px;
  margin-left: 14px;
  flex: 0 0 auto;
  color: var(--muted);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px 0 10px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.input-shell input::placeholder {
  color: #a8acb8;
}

.turnstile-wrap {
  min-height: 66px;
  margin: 18px 0;
  overflow: hidden;
}

.login-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 9px 22px rgba(105, 86, 232, .23);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-button:hover {
  background: var(--violet-dark);
  box-shadow: 0 11px 26px rgba(105, 86, 232, .28);
}

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

.login-button svg {
  width: 15px;
  height: 15px;
}

.error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #f4cece;
  border-radius: 10px;
  color: #b93232;
  background: #fff4f4;
  font-size: 10px;
  line-height: 1.5;
}

.error svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.privacy-note svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-intro {
    display: none;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .mobile-brand .brand-mark {
    width: 36px;
    height: 36px;
  }

  .mobile-brand strong {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-panel {
    align-items: start;
    min-height: 100vh;
    padding: 18px 12px;
  }

  .login-card {
    margin-top: 26px;
    padding: 25px 20px;
    border-radius: 18px;
  }

  .turnstile-wrap {
    margin-inline: -2px;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
