/* The sign-in pages (log in, sign up, forgot / reset password, verify email): a narrow form column on the
   left and a picture panel on the right that cross-fades between photos (js/auth-slides.js fills it).
   Linked after each page's own <style>, so these rules win. */

.auth-shell{
  display:grid;
  grid-template-columns:minmax(400px, 30%) 1fr;
  min-height:100vh;
  min-height:100dvh;
}
.auth-form-side{order:1;}

.auth-visual{
  order:2;
  position:relative;
  overflow:hidden;
  background:rgb(20,20,20);        /* the forecourt photo's own night sky, so the space above it is the same black */
  color:#fff;
  padding:0;
  display:block;
}
@media (max-width:1100px){
  .auth-visual{display:none;}
  .auth-shell{grid-template-columns:1fr;}
}

/* logo: the page is large, so it is too */
.brand-icon{height:76px;}
.brand-icon-link{margin-bottom:32px;}

/* ── slides: stacked on top of each other; only the one marked .on is visible, and opacity fades between them ── */
.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1.1s ease;
}
.slide.on{opacity:1;}
@media (prefers-reduced-motion:reduce){.slide{transition:none;}}

/* A wide photo: fitted to the panel's width and lifted clear of the caption, both edges melted into the black,
   so it is never cropped at the sides. */
.visual-photo{
  position:absolute;
  left:0;right:0;
  bottom:clamp(150px, 22vh, 220px);
}
.visual-photo img{
  width:100%;
  height:auto;
  display:block;
}
.visual-photo::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom,rgb(20,20,20) 0%,rgba(20,20,20,0) 14%),
    linear-gradient(to top,rgb(20,20,20) 0%,rgba(20,20,20,.6) 12%,rgba(20,20,20,0) 30%);
}

/* A portrait photo: fills the whole panel, darkened at the bottom for its caption. */
.visual-photo.fill{inset:0;bottom:0;}
.visual-photo.fill img{height:100%;object-fit:cover;object-position:60% 30%;}
.visual-photo.fill::after{
  background:linear-gradient(to top,rgba(0,0,0,.88) 0%,rgba(0,0,0,.6) 22%,rgba(0,0,0,0) 50%);
}

/* each slide's caption, bottom-left */
.visual-copy{
  position:absolute;
  left:0;bottom:0;
  z-index:1;
  padding:0 clamp(40px, 5vw, 72px) clamp(40px, 6vh, 64px);
  max-width:620px;
}
.visual-copy h2{
  font-size:clamp(2rem, 2.6vw, 2.75rem);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1.1;
  color:#fff;
  margin-bottom:12px;
}
.visual-copy p{
  font-size:1.0625rem;
  font-weight:400;
  color:rgba(255,255,255,.72);
  line-height:1.55;
  max-width:440px;
}

/* previous: a quiet chevron; next: a solid white button (the panel is dark) */
.visual-nav{
  position:absolute;
  right:clamp(40px, 5vw, 72px);
  bottom:clamp(40px, 6vh, 64px);
  z-index:2;
  display:flex;
  align-items:center;
  gap:18px;
}
.visual-nav button{
  border:none;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent;
}
.visual-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.nav-prev{background:transparent;color:rgba(255,255,255,.55);width:40px;height:40px;border-radius:50%;transition:color .15s;}
.nav-prev:hover{color:#fff;}
.nav-next{background:#fff;color:#0a0a0a;width:60px;height:60px;border-radius:50%;box-shadow:0 6px 20px rgba(0,0,0,.35);transition:transform .15s;}
.nav-next:hover{transform:scale(1.05);}
