/* Sign-in, terminal connection and consent pages in aius.co's sign-in style (auth.css and the
   sign-in page): a hairline frame on the grain, mono labels, 44px pill fields, the gradient submit. */
.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--page-ground);
}
.auth-shell {
  width: min(472px, 100%);
}
.auth-card {
  padding: 24px;
  border: 1px solid var(--line);
}
.auth-title {
  margin: 0;
  margin-bottom: 24px;
}
.auth-sub {
  color: var(--fg-muted);
  margin: 8px 0 20px;
  font-size: 16px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.auth-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.auth-sub code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-raised);
  padding: 1px 5px;
  border-radius: 4px;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
/* The mode switch is aius.co's navigation: ghost pills, the current one in the violet wash. */
.auth-tab {
  flex: 1;
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.auth-tab:hover {
  border-color: var(--line-strong);
}
.auth-tab[aria-selected="true"] {
  border-color: var(--brand-line);
  background: var(--brand-subtle);
  color: var(--brand);
  font-weight: 600;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
/* Field labels are aius.co's .micro: IBM Plex Mono, uppercase. */
.field-label {
  display: block;
  color: var(--caps-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.auth-remember input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--fg);
}
.field-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  color: var(--fg);
  background: var(--bg);
  font-size: 14px;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}
.field-input:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(46 0 156 / 0.12);
}
.field-input[aria-invalid="true"] {
  border-color: var(--danger);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.28px;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
.btn:hover:not(:disabled) {
  border-color: var(--line-strong);
}
.btn--primary {
  color: #ffffff;
  background: var(--gradient-brand);
  background-origin: border-box;
  border-color: transparent;
}
.btn--primary:hover:not(:disabled) {
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.btn--block {
  width: 100%;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-hint {
  color: var(--fg-muted);
  font-size: 12px;
}
/* Errors are aius.co's .auth-alert. */
.auth-error {
  color: var(--danger);
  overflow-wrap: anywhere;
}
.auth-error:not([hidden]) {
  padding: 8px 12px;
  border: 1px solid var(--danger-line);
  border-radius: 12px;
  background: var(--danger-bg);
  font-size: 13px;
}
.device-code {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 24px 0;
}
.device-form {
  display: grid;
  gap: 12px;
}
.device-form + .device-form {
  margin-top: 12px;
}
.auth-link {
  display: block;
  margin: 14px auto 0;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--fg-muted);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-link:hover,
.auth-link:focus-visible {
  color: var(--fg);
}
/* Where Google sends someone back after connecting an account. */
.connect-callback-title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
}
