/* EngageGrove — Register (extends shared auth styles) */

.auth-card--register {
  max-width: min(30rem, 100%);
}

.auth-main--register {
  padding-top: 7rem;
  padding-bottom: 2.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .auth-main--register {
    align-items: center;
    /* Keep clear gap under fixed site nav (was 2.5rem — card hugged the header). */
    padding-top: 7.5rem;
    padding-bottom: 3rem;
  }
}

.auth-rules {
  display: none;
  margin-top: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--background);
  padding: 0.75rem 0.85rem;
}

.auth-rules.is-visible {
  display: block;
}

.auth-rules-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.auth-rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.auth-rules-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.auth-rules-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  flex: 0 0 auto;
}

.auth-rules-list li.is-met {
  color: var(--foreground);
}

.auth-rules-list li.is-met::before {
  border-color: var(--success);
  background: var(--success);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.auth-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-check label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  cursor: pointer;
}

.auth-check label a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-check label a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-check label a:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--primary) 55%, transparent);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.auth-check[aria-invalid="true"] label {
  color: var(--foreground);
}

.auth-alert a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-alert a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-google.is-loading {
  opacity: 0.75;
  cursor: wait;
}

/* Collapsible referral code (under Confirm Password) */
.auth-referral {
  margin-top: 0.15rem;
}

.auth-referral-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.auth-referral-toggle:hover {
  color: var(--primary);
}

.auth-referral-toggle:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--primary) 55%, transparent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.auth-referral-chevron {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.auth-referral.is-open .auth-referral-chevron {
  transform: rotate(180deg);
}

.auth-referral-panel {
  margin-top: 0.65rem;
}

.auth-referral-panel[hidden] {
  display: none;
}

.auth-referral-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .auth-referral-chevron {
    transition: none;
  }
}
