/* Sign-in / create-account page. Tokens and shared components come from styles.css + brand.css. */
.auth-body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--ink);
}
.auth-page {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.auth-brand {
  font-size: 28px;
  letter-spacing: -1.5px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 34px 34px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 16px 40px #18191b08,
    0 2px 6px #18191b05;
}
.auth-tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  position: relative;
  padding: 0 0 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
}
.auth-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background 0.18s;
}
.auth-tab:hover {
  color: var(--ink);
}
.auth-tab[aria-pressed="true"] {
  color: var(--ink);
}
.auth-tab[aria-pressed="true"]::after {
  background: var(--accent);
}
.auth-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.6px;
  margin: 0;
}
.auth-subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.auth-alert,
.auth-status {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.auth-alert {
  color: #933d37;
  background: #fff4f2;
  border-color: #f0cfc9;
}
.auth-status {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: #f2cfe4;
}
.auth-form {
  margin-top: 24px;
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.auth-field input {
  max-width: none;
  min-height: 46px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #dcdde3;
  border-radius: 8px;
  color: #24262d;
  font-size: 14px;
  transition: border-color 0.15s;
}
.auth-field input:hover {
  border-color: #aaadb8;
}
.auth-field input[aria-invalid="true"] {
  border-color: #a2443a;
  background: #fff7f5;
}
.auth-field .field-help {
  margin-top: 7px;
}
.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  font-size: 13px;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f2;
  font-size: 11px;
  color: var(--muted);
}
.auth-links p {
  margin: 0;
}
.auth-links .text-button {
  color: var(--ink);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.auth-links .text-button:hover {
  color: var(--accent-strong);
}
.auth-disabled {
  text-align: center;
  padding: 6px 0 4px;
}
.auth-disabled h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
}
.auth-disabled p {
  margin: 10px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.auth-reassurance {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.auth-reassurance svg {
  width: 15px;
  height: 15px;
  color: var(--accent-strong);
  stroke-width: 1.8;
}
@media (max-width: 480px) {
  .auth-page {
    padding: 34px 18px 30px;
    gap: 22px;
  }
  .auth-card {
    padding: 26px 22px 22px;
    border-radius: 13px;
  }
  .auth-title {
    font-size: 27px;
    letter-spacing: -1.2px;
  }
  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
