.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
  margin-bottom: 0.75rem; /* 12px */
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* 4px */
}

.auth-label {
  font-size: 0.875rem; /* 14px */
  color: var(--auth-label-text-light-only);
  font-weight: 500;
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.75rem; /* 10px 12px */
  border: 1px solid var(--auth-input-border-light-only);
  border-radius: 0.625rem; /* 10px */
  font-size: 0.875rem; /* 14px */
  background-color: var(--auth-input-bg-light-only);
  color: var(--auth-input-text-light-only);
  outline: none;
}

.auth-input:focus {
  border-color: var(--auth-border-focus-light-only);
  box-shadow: 0 0 0 3px var(--auth-focus-ring-light-only);
}

.auth-button {
  width: 100%;
  padding: 0.625rem 0.75rem; /* 10px 12px */
  border: none;
  border-radius: 0.625rem; /* 10px */
  background-color: var(--auth-button-bg-light-only);
  color: var(--auth-button-text-light-only);
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  margin-bottom: 0.75rem; /* 12px */
  cursor: pointer;
}

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

.auth-toggle-wrapper {
  text-align: center;
  margin-bottom: 0.625rem; /* 10px */
}

.auth-toggle-link {
  background: transparent;
  border: 0;
  color: var(--auth-label-text-light-only);
  font-size: 0.875rem; /* 14px */
  text-decoration: underline;
  cursor: pointer;
}

.auth-toggle-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-magic-row {
  display: flex;
  gap: 0.5rem; /* 8px */
  margin-bottom: 0.75rem; /* 12px */
}

.auth-magic-row .auth-input {
  flex: 1 1 auto;
}

.auth-magic-button {
  padding: 0.875rem 1rem; /* 14px 16px */
  border: none;
  border-radius: 0.625rem; /* 10px */
  background-color: var(--auth-magic-button-bg-light-only);
  color: var(--auth-magic-button-text-light-only);
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

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

.auth-terms {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  margin-bottom: 0.5rem; /* 8px */
}

.auth-checkbox {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  accent-color: #AF3434;
}

.auth-terms-label {
  font-size: 0.75rem; /* 12px */
  color: var(--auth-label-text-light-only);
}

.auth-terms-label a {
  color: inherit;
  text-decoration: underline;
}

.auth-confirm {
  overflow: hidden;
  transition: max-height 240ms ease, opacity 200ms ease;
}

/* OAuth Button Styles */
.oauth-container-icons {
  display: flex;
  margin-bottom: 0.625rem; /* 10px */
  justify-content: space-between;
}

.oauth-container-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem; /* 12px */
  margin-bottom: 0.625rem; /* 10px */
}

.oauth-container-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
}

.oauth-button-icon {
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  border-radius: 0.875rem; /* 14px */
  border: 1px solid var(--auth-input-border-light-only);
  background: var(--auth-card-bg-light-only);
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.04); /* 0 2px 6px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.oauth-button-icon:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.oauth-button-grid {
  width: 100%;
  padding: 1rem; /* 16px */
  border-radius: 0.875rem; /* 14px */
  border: 1px solid var(--auth-input-border-light-only);
  background: var(--auth-card-bg-light-only);
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.04); /* 0 2px 6px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.oauth-button-grid:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.oauth-button-vertical {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem; /* 16px 16px */
  border: 1px solid #d1d5db;
  border-radius: 0.75rem; /* 12px */
  background-color: var(--auth-card-bg-light-only);
  font-size: 1rem; /* 16px */
  font-weight: 500;
  color: var(--auth-text-primary-light-only);
  cursor: pointer;
  gap: 0.75rem; /* 12px */
}

.oauth-button-vertical:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.oauth-icon-small {
  width: 1.75rem; /* 28px */
  height: 1.75rem; /* 28px */
  display: block;
}

.oauth-icon-medium {
  width: 1.75rem; /* 28px */
  height: 1.75rem; /* 28px */
  display: block;
}

.oauth-icon-tiny {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
}

/* Login Header Styles */
.login-header {
  margin-bottom: 1rem; /* 16px */
  margin-top: 0.5rem; /* 8px */
}

.login-header-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* 12px */
  margin-bottom: 1.25rem; /* 20px */
}

.login-logo-icon {
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  border-radius: 0.5rem; /* 8px */
}

.login-logo-text {
  height: 2rem; /* 32px - increased from 24px */
}

.login-title {
  font-size: 2rem; /* 32px */
  font-weight: 800;
  color: var(--auth-text-primary-light-only);
  margin: 0 0 0.375rem; /* 0 0 6px */
}

.login-subtitle {
  color: var(--auth-text-secondary-light-only);
  font-size: 0.875rem; /* 14px */
  margin: 0;
}

/* Navigation Link Styles */
.navigation-link-container {
  text-align: center;
}

.navigation-link-button {
  background: none;
  border: none;
  color: var(--auth-label-text-light-only);
  font-size: 0.875rem; /* 14px */
  cursor: pointer;
  text-decoration: underline;
}

.navigation-link-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Message Styles */
.error-message {
  padding: 1rem; /* 16px */
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem; /* 8px */
  margin-bottom: 1.5rem; /* 24px */
}

.error-message-text {
  color: #dc2626;
  font-size: 0.875rem; /* 14px */
  margin: 0;
}

.success-message {
  padding: 1rem; /* 16px */
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem; /* 8px */
  margin-bottom: 1.5rem; /* 24px */
}

.success-message-text {
  color: #059669;
  font-size: 0.875rem; /* 14px */
  margin: 0;
}

/* Field-level error styles */
.auth-field-error {
  color: #dc2626;
  font-size: 0.6875rem; /* 11px */
  margin-top: 0.125rem; /* 2px */
  line-height: 1.1;
}

.auth-input-error {
  border-color: #dc2626 !important;
}

.auth-input-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Shared auth styles extracted from inline */
.auth-section {
  margin: 0.75rem 0;
}

.auth-section-sm {
  margin: 0.5rem 0;
}

.auth-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 0.25rem;
}

.auth-bottom-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.auth-link-black {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem; /* 14px */
  color: #000;
}

.auth-dot-black {
  opacity: 0.5;
  padding: 0 0.5rem;
  color: #000;
}

/* Email login button - red CTA style matching SaaS version */
.auth-cta-button {
  background-color: #AF3434 !important;
  color: white !important;
  border: none !important;
  font-weight: 600 !important;
}

.auth-cta-button:hover:not(:disabled) {
  background-color: #9a2e2e !important;
}

.auth-cta-button:disabled {
  background-color: #AF3434 !important;
  opacity: 0.6 !important;
}
