@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../../fonts/space-grotesk-latin.woff2') format('woff2');
}
.cpi-auth {
  --auth-paper: #fafbfc;
  --auth-surface: #fff;
  --auth-ink: #12141b;
  --auth-muted: #58616e;
  --auth-line: #dce1e7;
  --auth-accent: #087563;
  --auth-soft: #e6f7f2;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--auth-paper);
  color: var(--auth-ink);
  font:
    400 14px/1.7 'Inter',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cpi-auth *,
.cpi-auth *::before,
.cpi-auth *::after {
  box-sizing: border-box;
}
.cpi-auth :is(h1, h2, h3, p, ol) {
  margin: 0;
}
.cpi-auth a {
  color: inherit;
  text-underline-offset: 4px;
}
.cpi-auth :is(a, button, input):focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 4px;
}
.auth-width {
  width: min(100% - 80px, 1200px);
  margin-inline: auto;
}
.auth-nav {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.auth-nav > a:last-child {
  color: var(--auth-muted);
  font-size: 12px;
  text-decoration: none;
}
.auth-nav > a:last-child:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.auth-logo img {
  display: block;
  width: 96.75px;
  height: 36px;
}
.auth-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 680px;
}
.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  border-radius: 10px;
  background: #0b0d12;
  color: #f7f9fa;
}
.auth-story .auth-kicker {
  color: #1bd8b4;
  margin-bottom: 28px;
}
.auth-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--auth-accent);
}
.auth-story h2 {
  font:
    500 clamp(38px, 3.7vw, 54px)/1.08 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.05em;
}
.auth-story h2 span {
  color: #1bd8b4;
}
.auth-story-copy {
  color: #bac3cf;
  font-size: 15px;
  line-height: 1.85;
  max-width: 350px;
  margin-top: 24px !important;
}
.auth-story-lines {
  margin-top: 56px;
  border-top: 1px solid #2a303b;
}
.auth-story-line {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid #2a303b;
}
.auth-story-line > span {
  font-size: 11px;
  color: #1bd8b4;
  padding-top: 3px;
}
.auth-story-line strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.auth-story-line p {
  font-size: 12px;
  line-height: 1.65;
  color: #a7b3c2;
  margin-top: 4px;
}
.auth-story-note {
  margin-top: 32px !important;
  font-size: 11px;
  color: #a7b3c2;
}
.auth-panel {
  padding: 44px 0 44px 76px;
  display: flex;
  align-items: center;
}
.auth-panel .form-container {
  width: 100%;
  max-width: 410px;
  margin-inline: auto;
}
.auth-heading {
  margin-bottom: 30px;
}
.auth-heading .auth-kicker {
  margin-bottom: 12px;
}
.cpi-auth h1 {
  font:
    500 36px/1.15 'Space Grotesk',
    sans-serif;
  letter-spacing: -0.045em;
}
.auth-heading > p:last-child,
.cpi-auth .subtitle {
  margin-top: 14px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.8;
}
.cpi-auth .auth-form {
  display: grid;
  gap: 20px;
}
.cpi-auth .form-group {
  display: grid;
  gap: 8px;
}
.cpi-auth label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.cpi-auth input:not([type='hidden']) {
  width: 100%;
  height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font:
    400 16px/1.5 'Inter',
    system-ui,
    sans-serif;
  box-shadow: none;
  transition: border-color 140ms;
}
.cpi-auth input::placeholder {
  color: #7a8490;
}
.cpi-auth input:hover {
  border-color: #9ca8b4;
}
.cpi-auth input:focus {
  border-color: var(--auth-accent);
}
.cpi-auth .btn-primary,
.cpi-auth .btn-secondary {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #12141b;
  color: #fff;
  font:
    600 14px/1.6 'Inter',
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms;
}
.cpi-auth .btn-primary:hover:not(:disabled) {
  background: #087563;
}
.cpi-auth .btn-primary:disabled {
  cursor: wait;
  opacity: 0.7;
}
.cpi-auth .btn-secondary {
  background: var(--auth-surface);
  color: var(--auth-ink);
  border-color: var(--auth-line);
}
.auth-submit-arrow {
  margin-left: auto;
  font-size: 17px;
  font-weight: 400;
}
.cpi-auth .btn-primary:has(.auth-submit-arrow) {
  justify-content: flex-start;
}
.auth-submit-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.auth-password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auth-password-label a {
  color: var(--auth-muted);
  font-size: 12px;
}
.cpi-auth .auth-link {
  color: var(--auth-muted);
  text-align: center;
  font-size: 13px;
  margin-top: 28px;
}
.cpi-auth .auth-link a {
  color: var(--auth-accent);
  font-weight: 600;
}
.cpi-auth .terms-notice {
  font-size: 11px;
  line-height: 1.8;
  color: var(--auth-muted);
}
.cpi-auth .terms-notice a {
  color: var(--auth-ink);
}
.cpi-auth .plan-info {
  border-left: 2px solid var(--auth-accent);
  padding: 0 0 0 14px;
}
.cpi-auth .plan-badge {
  color: var(--auth-accent);
  font-size: 12px;
  font-weight: 600;
}
.cpi-auth .plan-info p {
  color: var(--auth-muted);
  font-size: 12px;
  margin-top: 3px;
}
.auth-referral {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--auth-line);
  border-left: 3px solid var(--auth-accent);
  background: var(--auth-soft);
}
.auth-referral strong,
.auth-referral span {
  display: block;
}
.auth-referral code {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
}
.cpi-auth .error-message,
.cpi-auth .info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 3px solid #b93838;
  background: #fff0f0;
  color: #8a2727;
  font-size: 13px;
}
.cpi-auth .info-box {
  border-color: var(--auth-accent);
  background: var(--auth-soft);
  color: var(--auth-ink);
}
.cpi-auth :is(.error-message, .info-box) svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.auth-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--auth-muted);
}
.auth-footer > div {
  display: flex;
  gap: 24px;
}
.auth-footer a {
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}
/* Preserve the existing server form while replacing its legacy inline presentation. */
.cpi-auth .form-container > div:first-child:has(> h1) {
  text-align: left !important;
  margin-bottom: 30px !important;
}
.cpi-auth .form-container > div:first-child > img {
  display: none !important;
}
.cpi-auth .form-container > div:first-child > h1 {
  margin-bottom: 14px !important;
}
.cpi-auth .form-container > div[style*='linear-gradient'] {
  background: var(--auth-soft) !important;
  border-radius: 6px !important;
  border-left: 3px solid var(--auth-accent);
  box-shadow: none !important;
  animation: none !important;
}
.cpi-auth .form-container > div[style*='linear-gradient'] > div {
  color: var(--auth-ink) !important;
  flex-wrap: wrap;
}
.cpi-auth .btn-primary[style] {
  background: #12141b !important;
}
.cpi-auth .btn-primary[style]:hover {
  background: #087563 !important;
}
.cpi-auth .btn-primary::before {
  display: none !important;
}
.cpi-auth .form-group input:focus {
  transform: none !important;
}
@media (prefers-color-scheme: dark) {
  .cpi-auth {
    --auth-paper: #0b0d12;
    --auth-surface: #171c24;
    --auth-ink: #f7f9fa;
    --auth-muted: #bac3cf;
    --auth-line: #36404d;
    --auth-accent: #6df0da;
    --auth-soft: #152c29;
  }
  .auth-story {
    background: #121820;
  }
  .cpi-auth .btn-primary {
    background: #1bd8b4;
    color: #0b0d12;
  }
  .cpi-auth .btn-primary:hover:not(:disabled) {
    background: #6df0da;
  }
  .cpi-auth .btn-primary[style] {
    background: #1bd8b4 !important;
    color: #0b0d12 !important;
  }
  .cpi-auth .btn-primary[style]:hover {
    background: #6df0da !important;
  }
  .cpi-auth .error-message {
    color: #ffd3d3;
    background: #351b22;
    border-color: #ff9d9d;
  }
}
@media (max-width: 1050px) {
  .auth-story {
    padding: 36px;
  }
  .auth-panel {
    padding-left: 44px;
  }
  .auth-story h2 {
    font-size: 40px;
  }
}
@media (max-width: 767px) {
  .auth-width {
    width: min(100% - 40px, 460px);
  }
  .auth-nav {
    min-height: 84px;
    border-bottom: 1px solid var(--auth-line);
  }
  .auth-logo img {
    width: 86px;
    height: 32px;
  }
  .auth-grid {
    display: flex;
    min-height: auto;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    width: 100%;
    padding: 40px 0;
    align-items: flex-start;
  }
  .auth-panel .form-container {
    max-width: none;
  }
  .cpi-auth h1 {
    font-size: 32px;
  }
  .auth-footer {
    min-height: 70px;
    border-top: 1px solid var(--auth-line);
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-block: 16px;
  }
  .auth-footer > div {
    gap: 18px;
  }
  .auth-password-label {
    gap: 10px;
  }
  .auth-password-label a {
    font-size: 11px;
  }
}
