/* ============================================================
   AUTH SHELL — public page layout
   Logo top-left, optional help link top-right,
   card centered, minimal footer.
   No app sidebar — these are pre-login pages.
   ============================================================ */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
}

.auth-shell__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .auth-shell__topbar {
    padding: var(--space-3) var(--space-4);
  }
}

.auth-shell__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: calc(var(--logo-height) + 4px);
}

.auth-shell__logo img {
  height: var(--logo-height);
  width: auto;
  display: block;
}

img.auth-shell__logo--light { display: block; }
img.auth-shell__logo--dark  { display: none; }

[data-theme="dark"] img.auth-shell__logo--light { display: none; }
[data-theme="dark"] img.auth-shell__logo--dark  { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) img.auth-shell__logo--light { display: none; }
  :root:not([data-theme]) img.auth-shell__logo--dark  { display: block; }
}

.auth-shell__help {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
}

.auth-shell__help:hover {
  color: var(--text-primary);
}

.auth-shell__help svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.auth-shell__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
}

@media (max-width: 720px) {
  .auth-shell__main {
    padding: var(--space-4) var(--space-3);
    align-items: flex-start;
  }
}

.auth-shell__footer {
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.auth-shell__footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.auth-shell__footer-link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-shell__footer-link:hover {
  color: var(--text-secondary);
}
