/* Signed-out surfaces: sign-in and the second-factor challenge.
   Split panel — brand proof on the left, the form on the right. */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-10);
  padding: var(--space-8) var(--space-10);
  background: var(--chrome);
  color: var(--chrome-ink);
}
.auth-aside .brand svg {
  width: 30px;
  height: 30px;
}
.auth-aside .brand strong {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.014em;
}
.auth-quote {
  max-width: 34ch;
}
.auth-quote blockquote {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.021em;
  text-wrap: balance;
}
.auth-quote cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: var(--text-md);
  color: var(--chrome-ink-dim);
  line-height: 1.5;
}
.auth-aside-foot {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--chrome-ink-dim);
}
.auth-aside-foot a:hover {
  color: var(--chrome-ink);
}

.auth-main {
  display: grid;
  place-items: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg);
}
.auth-form {
  width: 100%;
  max-width: 344px;
}
.auth-form .brand {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.auth-form h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.021em;
}
.auth-form > p {
  color: var(--ink-2);
  font-size: var(--text-base);
  margin: 5px 0 var(--space-6);
}
.auth-form .btn {
  width: 100%;
  height: 36px;
}
.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-md);
}
.auth-links a {
  color: var(--accent-ink);
}
.auth-links a:hover {
  text-decoration: underline;
}

.auth-sso {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.auth-sso .btn {
  gap: var(--space-2);
}

.auth-foot {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}
.auth-foot a {
  color: var(--ink-2);
}
.auth-foot a:hover {
  text-decoration: underline;
}

/* second factor */
.otp-device {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.otp-device svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ink-2);
}
.otp-device strong {
  display: block;
  font-size: var(--text-md);
  font-weight: 600;
}
.otp-device small {
  display: block;
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.field input.otp-input {
  height: 50px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-aside {
    display: none;
  }
  .auth-form .brand {
    display: flex;
  }
}
