/* Sign-in page only: centered panel on a plain background, top and bottom margin per the 3xl token. */
.signin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-3xl) var(--space-lg);
}

.signin-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signin-lockup img {
  height: 31.2px;
  width: auto;
}

.signin-wordmark {
  font-family: "Stick No Bills", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.signin-panel {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.signin-panel h2 {
  margin-bottom: var(--space-sm);
}

#back-button,
#password-back-button,
#forgot-back-button {
  align-self: flex-start;
}

/* Google button and the "use a password instead" secondary row under the email step */
.signin-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.google-btn {
  gap: var(--space-sm);
  width: 100%;
}

/* A button styled and sized like the link it reads as, used where the action is a client-side
   step change rather than real navigation (so it stays a <button>, not an <a href="#">). */
.link-button {
  background: none;
  border: none;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}

/* Password field with a trailing show/hide toggle */
.field .input-with-toggle {
  position: relative;
  display: flex;
  align-items: center;
}

.field .input-with-toggle input {
  padding-right: calc(var(--space-md) + 32px);
}

.field .icon-toggle {
  position: absolute;
  right: 4px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--subtle);
  cursor: pointer;
}

/* Page-level error banner (e.g. a failed Google sign-in redirect) */
.notice-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--paper);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 8px;
  padding: var(--space-md);
  width: 100%;
  max-width: 400px;
}
