html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 50px rgba(18, 38, 63, 0.08), 0 2px 6px rgba(18, 38, 63, 0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-tabs {
  background: #f2f4f8;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.auth-tabs .nav-link {
  color: #4b5563;
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 12px;
}

.auth-tabs .nav-link.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-alert {
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.form-floating + .form-floating {
  margin-top: 0;
}

.auth-card .btn-primary {
  border-radius: 10px;
  padding: 12px;
  font-weight: 500;
}

.auth-card .btn-primary:disabled {
  opacity: 0.6;
}

.auth-footer {
  margin-top: 24px;
}

#forgot-password-link {
  color: #2b6cb0;
}

#forgot-password-link:hover {
  text-decoration: underline !important;
}

/* Social login section — ported from bio-master (ui/app/src/index.css). */

.auth-social-divider {
  color: #4b5563;
}

.auth-social-stack {
  box-sizing: border-box;
  width: 100%;
  align-self: center;
}

.auth-social-stack .auth-social-btn {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  border-radius: 0.25rem;
}

.auth-social-stack .auth-google-slot {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/* Amazon's branding guidelines require the official LWA gold/grey asset to
   be used as-is, so this button is just a transparent wrapper around the
   image. The image is centered in the full-width stack and scaled uniformly
   to match Google's GSI "large" height of 40px. */
.auth-amazon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 0;
}

.auth-amazon-btn:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.45);
  outline-offset: 3px;
  border-radius: 2px;
}

.auth-amazon-img {
  display: block;
  height: 40px;
  width: auto;
}

/* Do not style the GSI iframe — forced width/height clips Google's border. */
.auth-social-stack .auth-google-slot > div {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

