/*
 * Sorivelo sign-in pages (handoff 5.1; design/Login.dc.html): sign in,
 * forgot password, reset password and create password. A night panel with
 * the wordmark, value line and two small product cards
 * (templates/auth-panel.partial.gohtml), then the form. The pages are
 * standalone: they load tokens, base, type, icons, button, forms,
 * password and this file, and put sv-app sv-auth-body on <body>.
 *
 * Under 1000px the two halves no longer fit side by side: the panel becomes
 * a short band with the wordmark and value line, and the form follows.
 */

.sv-auth-body {
  margin: 0;
  background: var(--canvas);
}

.sv-auth {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--canvas);
}

/* Night panel */
.sv-auth-panel {
  position: relative;
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
  padding: var(--space-8) var(--space-9);
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
}

.sv-auth-wordmark {
  color: var(--surface);
  font-size: 34px;
  line-height: 1.2;
}

.sv-auth-pitch {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 460px;
  margin-top: auto;
}

.sv-auth-headline {
  margin: 0;
  color: var(--surface);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sv-auth-sub {
  margin: 0;
  color: var(--night-subtle);
  font-size: 15px;
}

.sv-auth-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin-bottom: auto;
}

.sv-auth-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3) 14px;
  border: 1px solid var(--night-card-border);
  border-radius: var(--radius-card);
  background: var(--night-card);
}

.sv-auth-card-offset {
  margin-left: 40px;
}

.sv-auth-card-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--violet-on-dark);
  font-size: 12.5px;
}

.sv-auth-card-label-good {
  color: var(--good-on-night);
}

.sv-auth-card-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--good-dot-on-night);
}

.sv-auth-card-text {
  color: var(--surface);
  font-size: 14px;
}

/* Form side */
.sv-auth-main {
  display: flex;
  flex: 1 1 480px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--space-8) var(--space-6);
}

.sv-auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  max-width: 380px;
  margin: 0;
}

.sv-auth-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-auth-lede {
  margin: 0;
  color: var(--ink-3);
}

.sv-auth-wide {
  width: 100%;
}

/* "or with email" between two hairlines */
.sv-auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-caption);
  font-size: 12.5px;
}

.sv-auth-divider::before,
.sv-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-control);
}

/* Label with a link at the other end ("Forgot password?") */
.sv-auth-label-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.sv-auth-link {
  color: var(--link);
  font-size: 13px;
  text-decoration: none;
}

.sv-auth-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.sv-auth-label-row > .sv-auth-link {
  margin-left: auto;
}

.sv-auth-check {
  gap: 10px;
  font-size: 13.5px;
}

.sv-auth-foot {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

/* "You picked Team" under the sign-up heading */
.sv-auth-plan {
  align-self: flex-start;
  margin: var(--space-1) 0 0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--violet-tint);
  color: var(--violet-text);
  font-size: 13px;
}

/* The sign-up form's honeypot: off screen, for bots that fill every box */
.sv-auth-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* A short note under a control (single sign-on not set up) */
.sv-auth-note {
  margin: calc(var(--space-3) * -1) 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
}

.sv-auth-note[hidden] {
  display: none;
}

/* Message at the top of the form: a problem, or good news */
.sv-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px var(--space-3);
  border-radius: var(--radius-control);
  background: var(--risk-tint);
  color: var(--risk);
  font-size: 13px;
  line-height: 1.4;
}

.sv-auth-alert[hidden] {
  display: none;
}

.sv-auth-alert > .sv-icon {
  margin-top: 1px;
}

.sv-auth-alert-good {
  background: var(--good-tint);
  color: var(--good);
}

.sv-auth-alert .sv-auth-alert-good-icon,
.sv-auth-alert-good .sv-auth-alert-risk-icon {
  display: none;
}

.sv-auth-alert-good .sv-auth-alert-good-icon {
  display: inline-block;
}

/* Narrow screens: a short night band, then the form */
@media (max-width: 999.98px) {
  .sv-auth {
    align-content: flex-start;
  }

  .sv-auth-panel {
    flex-basis: 100%;
    gap: 6px;
    padding: var(--space-5) var(--space-4);
  }

  .sv-auth-wordmark {
    font-size: 26px;
  }

  .sv-auth-pitch {
    margin-top: 0;
  }

  .sv-auth-headline {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--night-text);
  }

  .sv-auth-sub,
  .sv-auth-cards {
    display: none;
  }

  .sv-auth-main {
    align-items: flex-start;
    padding: var(--space-7) var(--space-4) var(--space-8);
  }
}
