/* ==========================================================================
   pages.css — page-specific layout not covered by shared components
   (login hero, help section, misc page furniture)
   ========================================================================== */

/* ---------------------------------- Login hero -------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-8) var(--space-6);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-color-dark);
  background: var(--primary-color-light);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: var(--fs-3xl);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero__lead {
  font-size: var(--fs-md);
  color: var(--color-body);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-ink-soft);
}

.hero__trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.hero__art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------- Access code card --------------------------- */

.code-card {
  max-width: 620px;
  margin-inline: auto;
  padding: var(--space-7);
  position: relative;
  z-index: 1;
  margin-top: calc(var(--space-8) * -1);
}

.code-card__heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.code-card__heading-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-color-light);
  color: var(--primary-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.code-card__heading-icon svg {
  width: 22px;
  height: 22px;
}

.code-card__heading h2 {
  font-size: var(--fs-md);
  color: var(--color-ink);
}

.code-card__heading p {
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

#code-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.code-card__add {
  margin-bottom: var(--space-5);
}

.code-card__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.code-card__privacy {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  justify-content: center;
  margin-top: var(--space-2);
}

.code-card__privacy svg {
  width: 15px;
  height: 15px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.demo-codes {
  max-width: 620px;
  margin: var(--space-5) auto 0;
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.demo-codes strong {
  color: var(--color-ink-soft);
}

.demo-codes button {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-color-dark);
  background: var(--primary-color-light);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
}

/* ---------------------------------- Help section -------------------------------- */

.help-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.help-section__art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.help-section__art img {
  width: 100%;
  display: block;
}

.help-block {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.help-block:last-of-type {
  margin-bottom: 0;
}

.help-block__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-color-light);
  color: var(--primary-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-block__icon svg {
  width: 22px;
  height: 22px;
}

.help-block h3 {
  font-size: var(--fs-base);
  color: var(--color-ink);
  margin-bottom: var(--space-1);
}

.help-block p {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.55;
}

/* ---------------------------------- Loading overlay (page transition) ------------ */

.page-loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-soft);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loading-overlay[hidden] {
  display: none;
}

/* ---------------------------------- Empty / generic states ------------------------ */

.empty-state {
  text-align: center;
  padding: var(--space-9) var(--space-5);
  color: var(--color-muted);
}

.empty-state svg {
  width: 46px;
  height: 46px;
  color: var(--color-border-strong);
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.empty-state h3 {
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

/* ---------------------------------- Student order status page rollup ------------- */

.student-order-block {
  margin-bottom: var(--space-9);
}

.student-order-block__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.student-order-block__header h2 {
  font-size: var(--fs-lg);
  color: var(--color-ink);
}

.student-order-block__header p {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}
