/* Auth pages — aligned with chat shell theme */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.auth-page__header {
  padding: 1rem 1.5rem;
}

.auth-page__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.auth-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgb(0 0 0 / 8%);
}

.auth-card h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--text, #1a1d26);
}

.auth-api-status {
  margin: -0.75rem 0 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.auth-api-status--warn {
  background: #fef2f2;
  color: var(--danger, #dc2626);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text, #1a1d26);
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}

.auth-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 10px;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.policy-doc h1 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.policy-doc h2 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.policy-doc p {
  line-height: 1.6;
  margin: 0.5rem 0;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0.875rem 0;
  cursor: pointer;
}

.auth-consent span {
  flex: 1;
  min-width: 0;
}

.auth-consent input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.google-signin-host {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  margin: 0.75rem 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-sizing: border-box;
}

.google-signin-host.hidden {
  display: none;
}

.google-signin-host--custom {
  position: relative;
  overflow: hidden;
}

.google-signin-facade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  box-sizing: border-box;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text, #1a1d26);
  pointer-events: none;
  user-select: none;
}

.google-signin-facade__label {
  white-space: nowrap;
}

.google-signin-facade__logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.google-signin-gis {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  overflow: hidden;
  cursor: pointer;
}

.google-signin-gis > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.auth-divider {
  text-align: center;
  margin: 0.5rem 0;
  font-size: 0.875rem;
}
