/* Desktop split layout: login / register / forgot-password + landing.html.
   Mobile uses templates/mobile/… */

body.auth-split-body {
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  background: linear-gradient(145deg, #faf8ff 0%, #f3e8ff 45%, #ede4fa 100%);
}

.auth-split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: min(1040px, 100%);
  min-height: min(560px, calc(100vh - 48px));
  background: #fff;
  border-radius: clamp(18px, 2.5vw, 26px);
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(114, 9, 183, 0.12),
    0 8px 16px rgba(90, 24, 154, 0.06);
  border: 1px solid rgba(233, 213, 255, 0.85);
}

.auth-split-layout__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  background: #fff;
}

.auth-split-layout__card.auth-content {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.auth-split-layout__head {
  margin-bottom: 1.35rem;
}

.auth-split-layout__title {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.auth-split-layout__subtitle {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.45;
}

.auth-split-layout__subtitle:empty {
  display: none;
}

/* Right column: hero photo fills panel; soft overlay keeps logo + tagline readable */
.auth-split-layout__right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: 100%;
  align-self: stretch;
  border-left: 1px solid var(--border);
  background-color: #f5f0ff;
  background-image: var(--auth-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-split-layout__right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.55) 35%,
    rgba(250, 248, 255, 0.35) 65%,
    rgba(114, 9, 183, 0.18) 100%
  );
}

.auth-desktop-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  flex: 1;
  min-height: min(520px, calc(100vh - 80px));
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  box-sizing: border-box;
}

.auth-desktop-brand__logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-desktop-brand__logo {
  max-width: min(240px, 88%);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.9));
}

.auth-desktop-brand__tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 2px 24px rgba(255, 255, 255, 0.85);
}

/* Stack on smaller desktop / tablet */
@media (max-width: 900px) {
  .auth-split-layout {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .auth-split-layout__right {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 280px;
  }

  .auth-desktop-brand {
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    gap: 1rem;
  }

  .auth-desktop-brand__tagline {
    flex: 0 0 auto;
  }
}
