/* PawTrack - shared non-member (auth) page shell.
   Link AFTER styles.css. Used by the routed Auth MVC views.
   Cross-audience: the shell is neutral/ink-led. Audience colour (teal/terracotta)
   only appears once a screen commits to one audience (e.g. the parent/pro register
   forms) - never split a screen between the two. */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pt-bg);
}

.auth-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

/* --- Card shell --- */
.auth {
  width: min(960px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

/* --- Left brand panel (cross-audience, neutral ink) --- */
.auth__brand {
  background: var(--pt-ink);
  color: #dfe9e9;
  padding: var(--space-7) 2.75rem;
  display: flex;
  flex-direction: column;
}
.brand__mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark img { width: 34px; height: 34px; display: block; }
.brand__wordmark {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand__wordmark span { color: var(--petparent); }

.brand__body { margin-block: auto; padding-block: 2.25rem; }
.brand__headline {
  color: #fff;
  font-size: var(--text-3xl);
  line-height: 1.1;
  max-width: 16ch;
  margin: 0 0 0.875rem;
}
.brand__sub { color: #a9bcbc; font-size: 16px; max-width: 34ch; margin: 0 0 1.875rem; }
.brand__points { display: grid; gap: 1.125rem; }
.point { display: flex; gap: 0.875rem; align-items: flex-start; }
.point__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  flex: none;
  color: #7fd3dc;
}
.point__title { color: #fff; font-weight: 700; font-size: 15px; }
.point__desc { color: #9fb3b3; font-size: 14px; line-height: 1.4; }
.brand__legal { font-size: 13px; color: #8aa0a0; }

/* --- Back to home link (top of form panel) --- */
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-ink-soft);
  text-decoration: none;
}
.auth__back:hover { color: var(--pt-ink); }
.auth__back i { width: 15px; height: 15px; }

/* --- Right form panel --- */
.auth__form {
  position: relative;
  background: var(--pt-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) 2.5rem;
}
.form__inner { width: 100%; max-width: 392px; }
.form__inner--wide { max-width: 440px; }
.form__inner h1,
.form__inner h2 { margin: 0 0 0.375rem; }
.auth-alert { margin: var(--space-5) 0; }
.auth-alert .validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.auth-alert .validation-summary-errors li { margin: 0.15rem 0; }
.rate-limit { text-align: center; }
.rate-limit__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto var(--space-5);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pt-warning-soft);
  color: var(--pt-warning);
}
.rate-limit__icon i { width: 28px; height: 28px; }
.rate-limit .pt-notice { margin: var(--space-6) 0; text-align: left; }
.pt-button.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: auto;
}
.form__lede { color: var(--pt-ink-soft); margin: 0 0 1.625rem; }

.fields { display: grid; gap: var(--space-4); }
.fields--tight { gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* --- Password field with show/hide --- */
.password { position: relative; }
.password .pt-input { padding-right: 44px; }
.password__toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--pt-muted);
  border-radius: var(--radius-sm);
}

.form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -0.25rem;
}
.checkrow {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 14px; color: var(--pt-ink-soft);
  cursor: pointer;
}
.checkrow--top { align-items: flex-start; gap: 0.625rem; }
.checkrow input[type="checkbox"] { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--petprofessional); flex: none; }
.checkrow--parent input[type="checkbox"] { accent-color: var(--petparent); }
.form__row a { font-size: 14px; font-weight: 600; }

/* Neutral/ink primary - for cross-audience actions (sign in, send reset) */
.pt-button--ink { background: var(--pt-ink); color: #fff; border: 0; }
.pt-button--ink:hover { background: #0f2329; }
.btn-block { width: 100%; }
.btn-block i { width: 18px; height: 18px; }

/* --- Divider --- */
.divider {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--pt-muted); font-size: 13px;
  margin: 1.125rem 0;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--pt-border); flex: 1; }

.social { display: grid; gap: 0.625rem; }
.social .pt-button { gap: 0.6rem; }

.form__foot {
  text-align: center;
  margin: 1.375rem 0 0;
  color: var(--pt-ink-soft);
  font-size: 14px;
}
.form__foot a { font-weight: 700; }

/* --- Back link --- */
.back {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border: 0; background: none; cursor: pointer;
  color: var(--pt-ink-soft); font: inherit; font-weight: 600;
  padding: 0; margin: 0 0 0.875rem;
  text-decoration: none;
}
.back i { width: 16px; height: 16px; }

/* --- Role choice cards (register) --- */
.roles { display: grid; gap: 0.875rem; }
.role {
  text-align: left; cursor: pointer; width: 100%;
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  display: flex; gap: 1rem; align-items: center;
  font: inherit;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
.role:hover { transform: translateY(-1px); }
.role--parent { background: var(--pt-warm-soft); border: 1px solid rgba(203, 80, 58, 0.28); }
.role--pro { background: var(--pt-cool-soft); border: 1px solid rgba(21, 128, 140, 0.28); }
.role__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.role--parent .role__icon { background: var(--petparent); }
.role--pro .role__icon { background: var(--petprofessional); }
.role__title { font-weight: 800; color: var(--pt-ink); font-size: 17px; font-family: var(--font-heading); }
.role__desc { color: var(--pt-ink-soft); font-size: 14px; }
.role__chev { margin-left: auto; flex: none; }
.role--parent .role__chev { color: var(--petparent); }
.role--pro .role__chev { color: var(--petprofessional); }

/* --- View switching (single-page register) --- */
[data-view] { display: none; }
[data-view].is-active { display: block; }

[data-lucide] { stroke-width: 2; }

/* --- Responsive: stack, drop brand panel --- */
@media (max-width: 760px) {
  .auth-shell { padding: 0; }
  .auth {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .auth__brand { display: none; }
  .auth__form { padding: var(--space-7) var(--space-5); }
  .grid-2 { grid-template-columns: 1fr; }
}
