/* ── Logged-out fullscreen layout ────────── */
/* cache-bust: 2026-03-17b */
.logged-out-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Top-left menu ───────────────────────── */
.lo-menu {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
}

.lo-menu__toggle {
  background: rgba(20, 18, 26, 0.8);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.lo-menu__toggle:hover { color: var(--color-text); }

.lo-menu__panel {
  position: fixed;
  top: 0;
  left: -220px;
  width: 200px;
  height: 100vh;
  background: var(--color-bg-panel);
  border-right: 1px solid var(--color-border);
  z-index: 300;
  transition: left 0.3s ease;
  padding: 3.5rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.lo-menu__panel.sidebar-panel--open { left: 0; }

.lo-menu__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.lo-menu__close:hover { color: var(--color-text); }

.lo-menu__links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lo-menu__links a {
  font-family: var(--font-heading);
  font-variant: small-caps;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

.lo-menu__links a:hover { color: var(--color-text-heading); }

/* ── Main content area ───────────────────── */
.lo-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ── Welcome / auth panel ────────────────── */
.lo-panel {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding-top: 3.5rem; /* clear the hamburger button on mobile */
}

@media (min-width: 600px) {
  .lo-panel { padding-top: 0; }
}

.lo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.lo-logo__emblem {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
}

.lo-logo__wordmark {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.lo-tagline {
  color: var(--color-gold);
  font-style: italic;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.lo-invite {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ── Auth form ───────────────────────────── */
.lo-form {
  background: rgba(20, 18, 26, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(8px);
  text-align: left;
}

.lo-form h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text-heading);
  margin-bottom: 1.5rem;
  text-align: center;
  font-variant: normal;
  letter-spacing: 0.05em;
}

.lo-form .field {
  margin-bottom: 1rem;
}

.lo-form label {
  display: block;
  font-family: var(--font-heading);
  font-variant: small-caps;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}

.lo-form input[type="email"],
.lo-form input[type="password"],
.lo-form input[type="text"] {
  width: 100%;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.lo-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* ── Devise error messages ──────────────── */
.devise-errors {
  margin-bottom: 1rem;
}

.devise-errors__message {
  color: #c97070;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-style: italic;
  padding: 0.4rem 0;
  border-left: 2px solid #8b3a3a;
  padding-left: 0.75rem;
  margin-bottom: 0.4rem;
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.lo-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: normal;
  line-height: 1.3;
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  color: #0a0a0f;
  background: #e8be8e;
  border-color: #e8be8e;
}

.lo-form-links {
  margin-top: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lo-form-links a {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-variant: small-caps;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}

.lo-form-links a:hover { color: var(--color-text-heading); }

/* ── Checkbox field ────────────────────────── */
.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.field--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-gold);
}

.field--checkbox label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-variant: normal;
  letter-spacing: normal;
  line-height: 1.4;
  cursor: pointer;
}

.field--checkbox label a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* ── Landing page — full bleed ───────────── */
.landing-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body:has(.landing-page) {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.landing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.6) 60%,
    rgba(10, 10, 15, 0.85) 100%
  );
}

.landing-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 560px;
}

.landing-logo .lo-logo__emblem { width: 80px; height: 80px; }
.landing-logo .lo-logo__wordmark { height: 56px; }

.landing-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  color: #e8d9c4;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.landing-cta {
  font-size: 1rem;
  padding: 0.75rem 2.5rem;
  letter-spacing: 0.06em;
}

@media (min-width: 600px) {
  .landing-tagline { font-size: 1.4rem; }
}

/* ── Coming Soon pages ───────────────────── */
.coming-soon-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.lo-logo--centered {
  margin-bottom: 2rem;
}

.coming-soon__inkfeather {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.coming-soon__title {
  font-family: var(--font-heading);
  font-variant: small-caps;
  font-size: 1.8rem;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
}

.coming-soon__divider {
  width: 50px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 1.25rem;
}

.coming-soon__message {
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.coming-soon__sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.coming-soon__sub a {
  color: var(--color-accent);
  text-decoration: none;
}

.coming-soon__sub a:hover {
  text-decoration: underline;
}

/* ── Wide panel (ToS, privacy) ─────────────── */
.lo-panel--wide {
  max-width: 640px;
}
