@layer pages {
/* ═══════════════════════════════════════════════════════════════════
   AUTH (login / register / magic-link sent)
   Standalone — fara layout.php, fara tab bar
   ======================================================================= */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Hero cu logo si botanical */
.auth-hero {
  padding: 40px var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-botanical {
  position: absolute;
  right: 20px; top: 20px;
  opacity: 0.10;
  pointer-events: none;
}

.auth-tagline {
  font-family: var(--font-family-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Card principal */
.auth-card {
  margin: 0 var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-5);
  overflow: hidden;
}

/* Turnstile — conține iframe-ul Cloudflare în limitele cardului */
.cf-turnstile {
  max-width: 100%;
  overflow: hidden;
  margin-top: var(--space-3);
}
.cf-turnstile iframe {
  max-width: 100% !important;
  width: 100% !important;
}

.auth-card__title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-card__subtitle {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-5);
}

/* Linie de separare intre sectiuni */
.auth-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

/* Link switch (Nu ai cont? / Ai cont?) */
.auth-switch {
  text-align: center;
  padding: var(--space-5) var(--space-5) 0;
  font-size: var(--font-size-base);
  color: var(--text-muted);
}
.auth-switch a {
  color: var(--brand);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}
.auth-switch a:hover { color: var(--brand-hover); text-decoration: underline; }

/* Termeni */
.auth-terms {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  padding: var(--font-size-sm) var(--space-6) 0;
  line-height: 1.6;
}
.auth-terms a { color: var(--text-secondary); text-decoration: underline; }

/* Preview initiale avatar (register) */
.avatar-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.avatar-preview {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  color: var(--brand-hover);
  transition: background var(--duration-fast);
}
.avatar-preview__hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ── Magic-link Sent screen ── */
.sent-card {
  margin: 0 var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-5);
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

.sent-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.sent-icon svg {
  width: 28px; height: 28px;
  stroke: var(--brand); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.sent-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.sent-desc {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-5);
}
.sent-desc strong { color: var(--text-primary); }

.sent-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.6;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  text-align: left;
  width: 100%;
}
.sent-hint strong { color: var(--text-secondary); }

.sent-timer {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
}
.sent-timer strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* Desktop auth — card centrat */
@media (min-width: 768px) {  /* --bp-md */
  .auth-page { align-items: center; justify-content: center; }
  .auth-hero  { width: 100%; max-width: 420px; }
  .auth-card,
  .sent-card  { width: 100%; max-width: 420px; margin: 0; }
  .auth-switch,
  .auth-terms { max-width: 420px; width: 100%; }
}

} /* end @layer pages */
