/* Page-specific layout patterns that don't belong in base/components. */

/* ================= AUTH SCREEN ================= */
/* Split layout: rounded panel with the Practicum wordmark (left) + form (right). */

.auth-screen {
  min-height: 100vh;
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.auth-image-panel {
  flex: 1 1 46%;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--elevation-2);
  min-height: 200px;
}

/* Brand mark fill. The logo already carries the wordmark, so this is a
   calm neutral surface with the mark centered — not a full-bleed photo
   crop, which would misuse a logo asset designed on a white ground. */
.auth-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  background: var(--surface-raised);
  padding: var(--space-xl);
}
.auth-logo {
  width: min(320px, 60%);
  height: auto;
  border-radius: var(--radius-xl);
}
.auth-tagline-text {
  max-width: 320px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.auth-form-panel {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-2);
  padding: var(--space-xl) var(--space-lg);
}

.auth-card h1 { font-size: 1.3rem; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 0.85rem; margin-bottom: var(--space-lg); }
.auth-card .btn { width: 100%; height: var(--control-height); margin-top: var(--space-sm); }
.auth-card .form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-md); text-align: center; }

@media (max-width: 900px) {
  .auth-image-panel { display: none; }
  .auth-screen { padding: var(--space-md); }
}

/* ================= MODAL ================= */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 21, 22, 0.35);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md);
  z-index: 50;
}
/* A class selector always beats the browser's UA-stylesheet [hidden]
   default (display:none), so without this, any element carrying both
   class="modal-backdrop" and the hidden attribute still renders full
   screen -- harmless when only one modal ever existed in the DOM at a
   time, a real bug once a page renders several (one per row) up front,
   all hidden until their own trigger is clicked. */
.modal-backdrop[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-3);
  padding: var(--space-lg);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }

/* ================= LOADING ================= */

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-recessed);
  box-shadow: var(--elevation-recessed);
  margin-bottom: 8px;
}

/* ================= PWA install banner (unobtrusive, dismissible) ================= */

.pwa-banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  background: var(--surface-raised);
  box-shadow: var(--elevation-1);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
}
