/* Business sign-in and create-account: a full-page photo (or a slow crossfade
   between photos) under a navy gradient, the headline on the left and a white
   card on the right. Applies only while body has .onb-entry-mode; the setup
   steps on the same page keep the progress rail from app.css. */

.login-backdrop, .login-hero { display: none; }

body.onb-entry-mode { background: #141a3d; }

body.onb-entry-mode .login-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #141a3d;
}
.login-slide {
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: var(--pos, center);
  opacity: 0;
  transition: opacity 1s ease;
}
.login-slide.is-active { opacity: 1; }
/* Stronger on the left so the white headline reads; the photo stays visible. */
.login-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 20, 52, 0.9) 0%, rgba(14, 20, 52, 0.72) 32%, rgba(14, 20, 52, 0.38) 62%, rgba(14, 20, 52, 0.22) 100%);
}

body.onb-entry-mode .onb-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 4.5rem);
  box-sizing: border-box;
}
body.onb-entry-mode .onb-rail { display: none; }

body.onb-entry-mode .login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  /* Pinned: the logo, headline and photo controls stay put while a long
     form (create account) scrolls past on the right. */
  position: sticky;
  top: clamp(1.5rem, 4vw, 3.5rem);
  align-self: start;
  height: calc(100vh - 2 * clamp(1.5rem, 4vw, 3.5rem));
  min-height: 28rem;
  color: #fff;
}
.login-logo { display: inline-flex; align-self: flex-start; border-radius: 0.5rem; }
.login-logo img { display: block; width: 148px; height: auto; }
.login-hero-copy { max-width: 34rem; }
.login-headline {
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.login-lede { margin: 0; max-width: 26rem; color: rgba(255, 255, 255, 0.92); font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 500; line-height: 1.35; }

.login-slide-controls { display: flex; align-items: center; gap: 0.35rem; }
.login-slide-controls[hidden] { display: none; }
.login-dot, .login-play {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.login-dot::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: background 0.2s ease, transform 0.2s ease; }
.login-dot[aria-current="true"]::before { background: #fff; transform: scale(1.15); }
.login-play::before { content: ""; width: 0.75rem; height: 0.9rem; border-left: 0.25rem solid #fff; border-right: 0.25rem solid #fff; box-sizing: border-box; }
.login-play.is-paused::before { width: 0; height: 0; border-style: solid; border-width: 0.5rem 0 0.5rem 0.8rem; border-color: transparent transparent transparent #fff; }
.login-dot:focus-visible, .login-play:focus-visible, .login-logo:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }

/* The card. */
body.onb-entry-mode .onb-main { align-self: center; max-width: none; padding: 0; }
body.onb-entry-mode .onb-entry-card {
  max-width: none;
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 12, 36, 0.35);
}
body.onb-entry-mode .onb-tabs { margin-bottom: 1.8rem; padding: 0.3rem; border-radius: 0.85rem; background: #eef0f5; }
body.onb-entry-mode .onb-tab { padding: 0.75rem; font-weight: 600; color: #434a73; }
body.onb-entry-mode .onb-tab.is-active { background: #fff; color: #3155c8; box-shadow: inset 0 -2px 0 #3155c8, 0 1px 2px rgba(20, 26, 61, 0.08); }
body.onb-entry-mode .onb-tab:focus-visible { outline: 3px solid #3155c8; outline-offset: 2px; }
body.onb-entry-mode .onb-h2, body.onb-entry-mode .onb-h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; color: #141a3d; }
body.onb-entry-mode .onb-sub { margin-bottom: 1.6rem; font-size: 1rem; font-weight: 400; color: #4a5175; }
body.onb-entry-mode .onb-form { gap: 1.15rem; }
body.onb-entry-mode .onb-field { font-size: 0.9rem; font-weight: 700; }
body.onb-entry-mode .onb-field input { min-height: 3.25rem; font-weight: 400; }
.onb-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.onb-field-link { color: #3155c8; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.onb-field-link:hover { text-decoration: underline; }
.onb-field-link:focus-visible { outline: 3px solid #3155c8; outline-offset: 2px; border-radius: 0.25rem; }
body.onb-entry-mode .password-toggle { color: #3155c8; font-weight: 600; }
body.onb-entry-mode .onb-btn-primary { min-height: 3.25rem; margin-top: 0.4rem; border-color: #3155c8; background: #3155c8; font-size: 1.05rem; }
body.onb-entry-mode .onb-btn-primary:hover { border-color: #2846b8; background: #2846b8; }
body.onb-entry-mode .onb-btn-primary:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
body.onb-entry-mode .onb-btn-primary:disabled { opacity: 0.7; cursor: progress; }

/* Phones and narrow windows: compact logo and headline above the card, the
   whole page scrolls, and the overlay darkens evenly from the top. */
@media (max-width: 860px) {
  body.onb-entry-mode .onb-shell { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 1rem 2.5rem; }
  body.onb-entry-mode .login-hero { position: static; height: auto; min-height: 0; gap: 1.25rem; }
  .login-logo img { width: 116px; }
  .login-headline { margin-bottom: 0.6rem; font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .login-lede { font-size: 1.05rem; }
  .login-slide { background-position: var(--pos-mobile, var(--pos, center)); }
  .login-backdrop::after { background: linear-gradient(180deg, rgba(14, 20, 52, 0.82) 0%, rgba(14, 20, 52, 0.6) 45%, rgba(14, 20, 52, 0.78) 100%); }
  body.onb-entry-mode .onb-main { align-self: start; }
  body.onb-entry-mode .onb-entry-card { padding: 1.5rem 1.25rem; }
  .login-slide-controls { order: 3; margin: -0.5rem 0 0 -0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .login-slide, .login-dot::before { transition: none; }
}
