/* Shared authentication and hosted browser surfaces. Marketing design tokens. */
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --auth-canvas: #f5f3ee;
  --auth-surface: #fff;
  --auth-ink: #111315;
  --auth-muted: #666a70;
  --auth-line: #d7d8d4;
  --auth-accent: #5f4b8b;
  --auth-accent-hover: #4c3c6f;
  --auth-accent-soft: #efedf3;
  --auth-accent-line: #cfc9dc;
  --auth-focus: var(--auth-accent);
  --auth-radius: 16px;
  --auth-font: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--auth-canvas);
  color: var(--auth-ink);
  font: 400 16px/1.5 var(--auth-font);
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  color: #6b6f74;
}
button,
input {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 4px;
}
.auth-shell {
  width: min(100% - 32px, 480px);
  margin: 0 auto;
  padding: 48px 0 24px;
}
.auth-shell-wide {
  width: min(100% - 32px, 680px);
}
.auth-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  text-decoration: none;
}
.auth-eyebrow {
  color: var(--auth-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  box-shadow: none;
}
.auth-card {
  padding: 32px;
}
#signupForm {
  display: block;
  width: 100%;
}
h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 12px;
}
.auth-credentials[hidden] {
  display: none;
}
h1 {
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.auth-description {
  color: var(--auth-muted);
  margin: 0 0 28px;
  overflow-wrap: anywhere;
}
.auth-help,
.text-info {
  font-size: 14px;
  color: var(--auth-muted);
}
.auth-help {
  margin: 8px 0;
}
#passwordHelp {
  font-size: 13px;
}
.auth-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0;
  font-size: 13px;
  color: var(--auth-muted);
}
.auth-footer a {
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.auth-field {
  margin-bottom: 18px;
}
.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.auth-field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-surface);
  color: var(--auth-ink);
}
.auth-field input:hover {
  border-color: var(--auth-muted);
}
.auth-field input:focus-visible {
  border-color: var(--auth-focus);
  outline: 2px solid var(--auth-focus);
  outline-offset: 2px;
}
.auth-password {
  position: relative;
}
.auth-password input {
  padding-right: 72px;
}
.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  font-size: 13px;
  cursor: pointer;
}
.auth-password-toggle[hidden] {
  display: none;
}
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-terms input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--auth-ink);
}
.auth-text-link {
  color: inherit;
  font: inherit;
  text-decoration: underline;
}
#loginBtn {
  display: block;
  width: 100%;
  margin: 24px 0 16px;
}
#resetPasswordBtn {
  display: block;
  width: fit-content;
  margin-left: auto;
}
.auth-account-switch,
#resetPasswordBtn {
  color: var(--auth-muted);
  font-size: 15px;
}
#crossLink {
  display: block;
  margin: 0 0 24px;
}
.auth-description #crossLink {
  display: inline;
  white-space: nowrap;
  font-size: inherit;
}
.auth-description + #crossLink {
  margin-top: -16px;
}
.verify {
  text-align: center;
}
.g_id_signin {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.auth-google-terms {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--auth-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}
.error-messages {
  display: none;
}
.error-messages.visible {
  display: block;
  margin-bottom: 24px;
}
.error-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--auth-accent-line);
  background: var(--auth-accent-soft);
  color: var(--auth-accent-hover);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}
.error-message.success {
  color: #245c42;
  background: #f0f8f2;
  border-color: #bbd9c5;
}
.error-message.info {
  color: #305366;
  background: #f0f6fa;
  border-color: #c2d5df;
}
.error-message.warning {
  color: #755719;
  background: #fff8e9;
  border-color: #e3d4ab;
}
.error-icon {
  display: flex;
  flex: none;
  padding-top: 2px;
}
.error-text {
  flex: 1;
  overflow-wrap: anywhere;
}
.error-dismiss {
  display: flex;
  flex: none;
  border: 0;
  color: inherit;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}
.alert {
  display: none !important;
}
.verification-code {
  margin: 24px 0;
}
.verification-code label {
  font-size: 14px;
  font-weight: 500;
}
.verification-code-control {
  position: relative;
  margin-top: 16px;
  height: 56px;
}
.verification-code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
}
.verification-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-surface);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.verification-code-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  outline: none;
  font-size: 24px;
}
.verification-code-control:focus-within .verification-code-box.is-active {
  border-color: var(--auth-focus);
  outline: 2px solid var(--auth-focus);
  outline-offset: -2px;
}
.verification-code-control:has([aria-invalid="true"]) .verification-code-box {
  border-color: var(--auth-accent-hover);
}
/* With scripts disabled, retain an ordinary visible, usable code field. */
.verification-code:not(.is-enhanced) .verification-code-boxes {
  visibility: hidden;
}
.verification-code:not(.is-enhanced) input {
  color: var(--auth-ink);
  caret-color: auto;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  padding: 12px;
}
.verification-code:not(.is-enhanced) input:focus-visible {
  outline: 2px solid var(--auth-focus);
  outline-offset: 2px;
}
.auth-detail {
  border-top: 1px solid var(--auth-line);
  padding-top: 20px;
  margin-top: 20px;
}
.auth-detail dt {
  font-size: 12px;
  color: var(--auth-muted);
  margin-bottom: 4px;
}
.auth-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.auth-permissions {
  padding-left: 20px;
}
.auth-permissions li {
  padding: 4px 0;
}
.auth-notice {
  border-left: 3px solid var(--auth-accent);
  background: var(--auth-accent-soft);
  padding: 14px 16px;
  font-size: 14px;
  margin: 24px 0;
}
.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.auth-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--auth-ink);
  border-radius: 8px;
  background: var(--auth-ink);
  color: #fff;
  padding: 12px 20px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.auth-button:hover {
  background: #303335;
  color: #fff;
}
.auth-button-secondary {
  background: #fff;
  color: var(--auth-ink);
  border-color: var(--auth-line);
}
.auth-button-secondary:hover {
  background: var(--auth-canvas);
  color: var(--auth-ink);
}
.auth-actions .auth-button {
  flex: 1;
}
.auth-file-input {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px dashed var(--auth-line);
  border-radius: 8px;
  margin: 16px 0;
}
.auth-result {
  background: var(--auth-canvas);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  font-size: 13px;
}
.auth-result:empty {
  display: none;
}
@media (max-width: 480px) {
  .auth-shell {
    padding-top: 28px;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .auth-actions {
    flex-direction: column;
  }
  .verification-code-boxes {
    gap: 6px;
  }
}
@media (forced-colors: active) {
  .verification-code-control input {
    forced-color-adjust: none;
    color: transparent;
    background: transparent;
  }
  .verification-code-box {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
  }
  .verification-code-control:focus-within .verification-code-box.is-active {
    outline: 2px solid Highlight;
  }
}

.verification-code [aria-live]:empty {
  display: none;
}

.auth-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-password-error {
  color: var(--auth-accent-hover);
}
.auth-password-error:empty {
  display: none;
}
.auth-field input[aria-invalid="true"] {
  border-color: var(--auth-accent-hover);
}
