/* ============================================================
   Login / enrollment page
   Layered on top of home.css + wre-page.css — only the pieces
   unique to this page live here.
   ============================================================ */

#wrehome .wre-auth [hidden] {
  display: none !important;
}

#wrehome .wre-auth {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: #fff;
}

/* ============================================================
   Brand panel (left)
   The panel column stretches with the form column, but its
   content does not: the inner block is sized from the viewport
   (below the announcement bar + header) and pinned with sticky.
   Switching between Sign In and Create Account changes only the
   form column's height, so nothing on this side moves.
   ============================================================ */
#wrehome .wre-auth-aside {
  position: relative;
  background: linear-gradient(160deg, #fbf6f0, #fdfaf7 55%, #fff4ea);
  border-right: 1px solid rgba(229, 216, 204, 0.6);
  /* clip, not hidden: hidden would make this the sticky container */
  overflow: clip;
}
#wrehome .wre-auth-aside-inner {
  position: sticky;
  top: 4.0625rem; /* condensed sticky header height */
  min-height: calc(100vh - 7.25rem); /* viewport minus announcement + header */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3rem;
  overflow: hidden;
}
#wrehome .wre-auth-deco {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
#wrehome .wre-auth-deco--tr {
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(var(--primary-rgb), 0.05);
}
#wrehome .wre-auth-deco--bl {
  bottom: 0;
  left: -2.5rem;
  width: 15rem;
  height: 15rem;
  background: rgba(209, 250, 229, 0.55);
}
/* lift the copy above the decorative circles */
#wrehome .wre-auth-aside-inner > :not(.wre-auth-deco) {
  position: relative;
}
#wrehome .wre-auth-aside h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 1rem;
}
#wrehome .wre-auth-aside h2 .accent {
  color: var(--primary);
}
#wrehome .wre-auth-aside .lede {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  max-width: 26rem;
}
#wrehome .wre-auth-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
#wrehome .wre-auth-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
#wrehome .wre-auth-perks .ic {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 216, 204, 0.6);
}
#wrehome .wre-auth-perks .t {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
#wrehome .wre-auth-perks .d {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
#wrehome .wre-auth-copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.8;
}

/* ============================================================
   Form column (right)
   Top-aligned (not vertically centred) so the tab switcher stays
   put when the active form changes height.
   ============================================================ */
#wrehome .wre-auth-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 3rem 5rem;
}
#wrehome .wre-auth-card {
  width: 100%;
  max-width: 28rem;
}

/* ---- Sign In / Create Account switcher ---- */
#wrehome .wre-auth-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 2rem;
  background: var(--muted);
  border-radius: 0.875rem;
}
#wrehome .wre-auth-tab {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
#wrehome .wre-auth-tab:hover {
  color: var(--foreground);
}
#wrehome .wre-auth-tab.is-active {
  background: #fff;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
#wrehome .wre-auth-tab:focus-visible,
#wrehome .wre-auth-back:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---- form heading + helpers ---- */
#wrehome .wre-auth-head h1 {
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
#wrehome .wre-auth-head p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
#wrehome .wre-auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}
#wrehome .wre-auth-row .wre-link {
  font-size: 0.8125rem;
  font-weight: 500;
}
#wrehome .wre-auth-switch {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
#wrehome .wre-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem -0.25rem;
  padding: 0.25rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
#wrehome .wre-auth-back:hover {
  color: var(--foreground);
}
#wrehome .wre-auth-signed {
  display: grid;
  gap: 1.25rem;
}

/* ============================================================
   Responsive — the brand panel drops out below desktop width
   ============================================================ */
@media (max-height: 640px) {
  #wrehome .wre-auth-aside-inner {
    position: static;
  }
}
@media (max-width: 1024px) {
  #wrehome .wre-auth {
    grid-template-columns: 1fr;
  }
  #wrehome .wre-auth-aside {
    display: none;
  }
  #wrehome .wre-auth-main {
    padding: 3rem 1.5rem 4rem;
  }
}
@media (max-width: 480px) {
  #wrehome .wre-auth-main {
    padding: 2rem 1rem 3rem;
  }
}
