/* TourismOS integration — headerless auth split layout */

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: #64748b;
}

.auth-back-link:hover {
  color: #2563eb;
}

.auth-back-link__icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.auth-back-link--brand {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 20;
  color: rgba(226, 232, 240, 0.92);
}

.auth-back-link--brand:hover {
  color: #fff;
}

.auth-back-link--brand:hover .auth-back-link__icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
}

.auth-back-link--mobile {
  display: inline-flex;
  flex-shrink: 0;
  margin: 1rem 1.25rem 0;
  color: #64748b;
}

.auth-back-link--mobile .auth-back-link__icon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.auth-back-link--mobile:hover .auth-back-link__icon {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

@media (min-width: 1024px) {
  .auth-back-link--mobile {
    display: none;
  }
}

@media (min-width: 1024px) {
  .auth-page {
    overflow: hidden;
    height: 100dvh;
  }

  .auth-page #main-content {
    padding-top: 0;
    margin-top: 0;
    height: 100dvh;
    overflow: hidden;
  }

  .auth-page .auth-layout--split {
    position: relative;
    display: block;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  .auth-page .auth-layout--split .auth-brand-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    min-height: auto;
    height: 100dvh;
    padding: 4.5rem 3rem 2.5rem;
    display: flex;
    z-index: 1;
    overflow: hidden;
  }

  .auth-page .auth-layout--split .auth-form-shell {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    width: 50%;
    margin-left: 0;
    min-height: auto;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .auth-page .auth-layout--split .auth-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: min(100%, calc(100dvh - 7rem));
    padding: 2rem 2.5rem;
    box-sizing: border-box;
  }

  .auth-page .auth-layout--split .auth-card {
    width: 100%;
    margin: 0 auto;
  }

  .auth-page .auth-layout--split .auth-footer {
    flex-shrink: 0;
    margin-top: auto;
  }
}

@media (max-width: 1023px) {
  .auth-page .auth-form-shell {
    min-height: 100dvh;
  }

  .auth-page .auth-main {
    padding-top: 0.5rem;
  }
}

/* Minimal legal footer */
.auth-page .auth-footer {
  padding: 0 1.25rem 0.875rem;
}

@media (min-width: 1024px) {
  .auth-page .auth-footer {
    padding: 0 2rem 1rem;
  }
}

.auth-page .auth-footer-links {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 0.25rem;
}

.auth-page .auth-footer-links a {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 200ms ease;
}

.auth-page .auth-footer-links a:not(:last-child)::after {
  content: "·";
  margin: 0 0.45rem;
  color: #e2e8f0;
  font-weight: 400;
  pointer-events: none;
}

.auth-page .auth-footer-links a:hover {
  color: #94a3b8;
}

.auth-page .auth-footer-copy {
  font-size: 0.625rem;
  font-weight: 400;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Modern auth brand panel */
.auth-page .auth-brand-panel {
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.16), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(99, 102, 241, 0.2), transparent 36%),
    linear-gradient(155deg, #0b1220 0%, #162a5a 46%, #1d4ed8 100%);
}

.auth-page .auth-brand-glow {
  position: absolute;
  inset: auto auto 18% -12%;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.22) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .auth-page .auth-layout--split .auth-brand-panel {
    justify-content: center;
    align-items: flex-start;
    padding: 5.25rem 3.5rem 2.5rem;
  }
}

.auth-page .auth-brand-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  max-width: 31rem;
  margin: 0;
  text-align: left;
}

.auth-page .auth-brand-top {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.auth-page .auth-brand-mark {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  margin-bottom: 0.25rem;
}

.auth-page .auth-brand-logo {
  display: block;
  width: auto;
  max-width: 9.5rem;
  max-height: 2.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.auth-page .auth-brand-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.auth-page .auth-brand-logo-fallback i {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

.auth-page .auth-brand-title {
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  color: #f8fafc;
}

.auth-page .auth-brand-title em {
  display: inline;
  font-style: normal;
  background: linear-gradient(90deg, #bfdbfe 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-page .auth-brand-lead {
  margin: 0;
  max-width: 50ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.92);
}

.auth-page .auth-brand-features {
  display: grid;
  gap: 0.75rem;
}

.auth-page .auth-brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.auth-page .auth-brand-feature:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.auth-page .auth-brand-feature__icon {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.85rem;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.auth-page .auth-brand-feature__icon i {
  width: auto;
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
  font-size: inherit;
}

.auth-page .auth-brand-feature--blue .auth-brand-feature__icon {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.24);
  color: #bfdbfe;
}

.auth-page .auth-brand-feature--emerald .auth-brand-feature__icon {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(110, 231, 183, 0.22);
  color: #a7f3d0;
}

.auth-page .auth-brand-feature--violet .auth-brand-feature__icon {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(196, 181, 253, 0.24);
  color: #ddd6fe;
}

.auth-page .auth-brand-feature__body strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
}

.auth-page .auth-brand-feature__body span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.9);
}

.auth-page .auth-brand-steps {
  display: grid;
  gap: 0.75rem;
}

.auth-page .auth-brand-step {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-page .auth-brand-step__index {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.6875rem;
  font-weight: 800;
  color: #dbeafe;
  flex-shrink: 0;
}

.auth-page .auth-brand-step__body strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
}

.auth-page .auth-brand-step__body span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.9);
}

.auth-page .auth-brand-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  padding-top: 0.25rem;
}

.auth-page .auth-brand-proof--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-page .auth-brand-proof__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.65rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.auth-page .auth-brand-proof__value {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.1;
}

.auth-page .auth-brand-proof__value i {
  font-size: 0.85rem;
  color: #bfdbfe;
}

.auth-page .auth-brand-proof__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.82);
}
