/* Login page: navy brand panel on the left, sign-in form on the right. */
:root {
  --navy: #1b1f7a;
  --navy-ink: #141a46;
  --teal: #57e0c9;
  --teal-ink: #0b7a63;
  --lavender: #c9cbf2;
  --panel: #f5f6fa;
  --field-border: #dfe2ec;
  --muted: #5d6478;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body.tw-login {
  background: var(--panel);
  color: var(--navy-ink);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-split { display: grid; grid-template-columns: 53.5% 1fr; min-height: 100%; }

/* Left: brand panel. */
.login-hero {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 46px 64px 48px;
  position: relative;
}

.login-orbits {
  height: 1000px;
  left: 73.8%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  z-index: -1;
}

.orbit { fill: none; stroke-width: 1.4; }
.orbit-faint { stroke: rgba(87, 224, 201, .14); }
.orbit-soft { stroke: rgba(87, 224, 201, .3); }
.orbit-mid { stroke: rgba(87, 224, 201, .4); }
.orbit-strong { stroke: rgba(87, 224, 201, .6); stroke-width: 2; }
.orbit-core { fill: var(--teal); }
.orbit-dot { fill: rgba(232, 233, 250, .85); }
.orbit-dot.is-teal { fill: var(--teal); }

.login-brand { align-items: center; color: #fff; display: inline-flex; gap: 14px; text-decoration: none; width: max-content; }
.login-brand svg { color: var(--teal); }
.login-brand span { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }

.login-pitch { margin: auto 0; max-width: 560px; padding: 32px 0; }

.login-tag {
  background: rgba(87, 224, 201, .12);
  border-radius: 999px;
  color: var(--teal);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .9px;
  padding: 6px 13px;
  text-transform: uppercase;
}

.login-pitch h1 { color: #fff; font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1.02; margin: 26px 0 26px; }
.login-pitch h1 em { color: var(--teal); font-style: normal; }
.login-lede { color: var(--lavender); font-size: 18px; line-height: 1.6; margin: 0 0 30px; max-width: 520px; }

.login-points { display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; }
.login-points li { align-items: center; color: #e8e9fa; display: flex; font-size: 15.5px; gap: 14px; }
.login-points li::before {
  background: var(--teal);
  content: "";
  flex-shrink: 0;
  height: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 18px;
}

.login-copyright { color: rgba(201, 203, 242, .75); font-size: 13px; }

/* Right: sign-in form. */
.login-panel { align-items: center; display: flex; justify-content: center; padding: 48px 32px; }
.login-form { width: min(420px, 100%); }

.login-form h2 { color: var(--navy-ink); font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 0; }
.login-sub { color: var(--muted); font-size: 16px; margin: 12px 0 34px; }

.login-error {
  background: #fdecec;
  border: 1px solid #f6c4c4;
  border-radius: 10px;
  color: #b42318;
  font-size: 14px;
  font-weight: 500;
  margin: -14px 0 22px;
  padding: 11px 14px;
}

.field-label { color: var(--navy-ink); display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 9px; }
.field-label-row { align-items: baseline; display: flex; justify-content: space-between; margin-top: 22px; }

.forgot-link { background: none; border: 0; color: var(--teal-ink); cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600; padding: 0; }
.forgot-link:hover { text-decoration: underline; }

.field { position: relative; }

.field input {
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--navy-ink);
  font: inherit;
  font-size: 15.5px;
  height: 52px;
  outline: none;
  padding: 0 46px 0 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.field input::placeholder { color: #8a90a3; }
.field input:hover { border-color: #c7cbdb; }
.field input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 31, 122, .12); }

.field-icon { color: #5d6478; height: 20px; left: 17px; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); width: 20px; }

.field-toggle {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--navy-ink);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
}

.field-toggle svg { height: 21px; width: 21px; }
.field-toggle svg[hidden] { display: none; }
.field-toggle:hover { background: var(--panel); }
.field-toggle:focus-visible, .forgot-link:focus-visible, .remember input:focus-visible, .login-support a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.remember { align-items: center; color: #3c4256; cursor: pointer; display: flex; font-size: 15px; gap: 12px; margin: 26px 0 0; width: max-content; }
.remember input { accent-color: var(--navy); height: 17px; margin: 0; width: 17px; }

.signin-button {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(27, 31, 122, .22);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  height: 52px;
  justify-content: center;
  margin-top: 26px;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
  width: 100%;
}

.signin-button svg { height: 18px; transition: transform .15s ease; width: 18px; }
.signin-button:hover { background: #23289a; box-shadow: 0 12px 26px rgba(27, 31, 122, .3); }
.signin-button:hover svg { transform: translateX(3px); }
.signin-button:active { transform: translateY(1px); }
.signin-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.signin-button:disabled { cursor: progress; opacity: .75; }

.login-support {
  align-items: center;
  background: #eceef8;
  border-radius: 10px;
  color: #3c4256;
  display: flex;
  font-size: 13.5px;
  gap: 12px;
  margin: 32px 0 0;
  padding: 15px 18px;
  transition: box-shadow .2s ease;
}

.login-support svg { color: var(--navy); flex-shrink: 0; height: 18px; width: 18px; }
.login-support a { color: var(--teal-ink); font-weight: 600; }
.login-support strong { color: var(--navy-ink); font-weight: 600; }
.login-support.is-highlighted { box-shadow: 0 0 0 2px var(--teal-ink); }

@media (max-width: 1100px) {
  .login-hero { padding: 40px 44px; }
  .login-pitch h1 { font-size: 46px; }
}

@media (max-width: 900px) {
  .login-split { grid-template-columns: 1fr; }
  .login-hero { min-height: 0; padding: 28px 24px 34px; }
  .login-orbits { height: 700px; left: 88%; opacity: .7; width: 700px; }
  .login-pitch { padding: 34px 0 0; }
  .login-pitch h1 { font-size: 36px; letter-spacing: -1px; margin: 18px 0 14px; }
  .login-lede { font-size: 16px; margin-bottom: 0; }
  .login-points, .login-copyright { display: none; }
  .login-panel { align-items: flex-start; padding: 36px 20px 48px; }
  .login-form h2 { font-size: 28px; }
  .login-sub { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
