/**
 * Sign in, register, and account pages — site design system.
 */

body.page-auth,
body.page-account {
  background: var(--match-dark-bg, #000000) !important;
}

.sn-auth-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  color: var(--text-primary, #f0f0f0);
}

.sn-account-page {
  max-width: 560px;
}

.sn-auth-card {
  background: var(--match-card-bg, #1a1a1a);
  border: 1px solid var(--match-border, #2a2a2a);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sn-account-page .sn-auth-card {
  padding: 0;
}

.sn-auth-eyebrow,
.sn-auth-section-label {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark, #4a7c59);
}

.sn-auth-section-label {
  margin-bottom: 10px;
  color: var(--match-text-muted, #888888);
}

.sn-auth-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sn-auth-section-head .sn-auth-section-label {
  margin-bottom: 0;
}

.sn-auth-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}

.sn-auth-title-mark {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 3.25rem;
  object-fit: contain;
}

.sn-auth-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-primary, #ffffff);
  flex: 1;
  min-width: 0;
}

.sn-auth-lead,
.sn-auth-section-body {
  margin: 0 0 22px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--match-text-light, #cccccc);
}

.sn-auth-section-body {
  margin-bottom: 0;
}

.sn-auth-meta {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--match-text-muted, #888888);
}

.sn-auth-meta strong {
  color: var(--match-text-light, #cccccc);
  font-weight: 500;
}

.sn-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sn-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sn-auth-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--match-text-muted, #888888);
}

.sn-auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--match-border, #2a2a2a);
  border-radius: 8px;
  background: var(--field-bg, var(--match-card-bg, #1a1a1a));
  color: var(--text-primary, #f0f0f0);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sn-auth-input::placeholder {
  color: var(--text-muted, #666666);
  opacity: 1;
}

.sn-auth-input:focus {
  outline: none;
  border-color: var(--primary-dark, #4a7c59);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-dark, #4a7c59) 55%, transparent);
}

.sn-auth-error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #f87171;
}

.sn-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.sn-auth-btn--primary {
  width: 100%;
  background: var(--primary-dark, #4a7c59);
  color: #ffffff;
}

.sn-auth-btn--primary:hover {
  background: var(--primary-color, #629670);
  color: #ffffff;
}

.sn-auth-btn--compact {
  width: auto;
  flex: 0 0 auto;
  padding: 11px 18px;
  white-space: nowrap;
}

.sn-auth-btn--outline {
  background: transparent;
  border: 1px solid var(--match-border, #2a2a2a);
  color: var(--text-secondary, var(--match-text-light, #cccccc));
}

.sn-auth-btn--outline:hover {
  border-color: color-mix(in srgb, var(--text-primary) 18%, var(--match-border, #2a2a2a));
  color: var(--text-primary, #ffffff);
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
}

.sn-auth-btn--signout:hover {
  border-color: color-mix(in srgb, #f87171 45%, var(--match-border, #2a2a2a));
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.sn-auth-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.8125rem;
}

.sn-auth-links-centered {
  justify-content: center;
  text-align: center;
}

.sn-auth-link {
  text-decoration: none;
  transition: color 0.15s ease;
}

.sn-auth-link--accent {
  color: var(--primary-color, #629670);
}

.sn-auth-link--accent:hover {
  color: var(--primary-light, #7fb88f);
}

.sn-auth-link--muted {
  color: var(--match-text-muted, #888888);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sn-auth-link--muted:hover {
  color: var(--match-text-light, #cccccc);
}

.sn-auth-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--match-text-muted, #888888);
  font-size: 0.8125rem;
}

.sn-auth-or-divider::before,
.sn-auth-or-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--match-border, #2a2a2a);
}

.sn-auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--match-border, #2a2a2a);
  border-radius: 8px;
  background: var(--match-card-bg, #1a1a1a);
  color: var(--text-primary, #f0f0f0);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.sn-auth-google-btn:hover {
  background: color-mix(in srgb, var(--text-primary) 4%, var(--match-card-bg, #1a1a1a));
  border-color: color-mix(in srgb, var(--text-primary) 12%, var(--match-border, #2a2a2a));
  color: var(--text-primary, #f0f0f0);
}

.sn-auth-google-btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.sn-auth-section {
  padding: 22px 24px;
}

.sn-auth-divider {
  margin: 0;
  border: none;
  border-top: 1px solid var(--match-border, #2a2a2a);
}

.sn-auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--primary-color, #629670) 55%, transparent);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color, #629670);
  white-space: nowrap;
}

.sn-auth-badge--muted {
  border-color: var(--match-border, #2a2a2a);
  color: var(--match-text-muted, #888888);
}

.sn-auth-inline-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sn-auth-inline-row .sn-auth-field {
  flex: 1 1 auto;
  min-width: 0;
}

.sn-auth-subsection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sn-auth-subsection + .sn-auth-subsection {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--match-border, #2a2a2a);
}

.sn-auth-subsection-title {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--match-text-light, #cccccc);
}

.sn-auth-subsection-note {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--match-text-muted, #888888);
}

.sn-auth-signout-wrap {
  margin-top: 18px;
}

@media (max-width: 480px) {
  .sn-auth-card {
    padding: 22px 18px;
  }

  .sn-auth-section {
    padding: 18px;
  }

  .sn-auth-inline-row {
    flex-direction: column;
  }

  .sn-auth-btn--compact {
    width: 100%;
  }

  .sn-auth-links-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
