/* Sabiq auth experience — clear two-panel layout inspired by modern SaaS onboarding. */
:root {
  --auth-page: #ffffff;
  --auth-showcase: #f4f3fa;
  --auth-surface: #ffffff;
  --auth-soft: #f5f5f9;
  --auth-line: #e8e7ef;
  --auth-ink: #17172a;
  --auth-muted: #77778a;
  --auth-primary: #5145dc;
  --auth-primary-dark: #4338ca;
  --auth-primary-soft: #efedff;
}

html:not(.light) {
  --auth-page: #0d0d15;
  --auth-showcase: #171724;
  --auth-surface: #11111c;
  --auth-soft: #1b1b29;
  --auth-line: #2d2d3d;
  --auth-ink: #f7f7fb;
  --auth-muted: #a5a5b8;
  --auth-primary-soft: #272344;
}

body {
  display: block;
  min-height: 100dvh;
  padding: 24px;
  overflow-x: hidden;
  background: var(--auth-page);
  color: var(--auth-ink);
}

.bg-orb,
.auth-brand::before,
.auth-brand::after {
  display: none !important;
}

.auth-container {
  width: min(1640px, 100%);
  min-height: calc(100dvh - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(500px, .92fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
  direction: ltr;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-brand,
.auth-form-panel {
  direction: rtl;
}

html[dir="ltr"] .auth-brand,
html[dir="ltr"] .auth-form-panel {
  direction: ltr;
}

.auth-brand {
  min-width: 0;
  min-height: calc(100dvh - 48px);
  padding: clamp(30px, 3.4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  color: var(--auth-ink);
  text-align: center;
  border: 0;
  border-radius: 32px;
  background: var(--auth-showcase);
  box-shadow: none;
}

.auth-showcase-copy {
  width: min(760px, 100%);
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.auth-showcase-kicker,
.auth-slide-kicker {
  color: var(--auth-primary);
  font-size: .79rem;
  font-weight: 700;
}

.auth-showcase-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(1.65rem, 2.35vw, 2.5rem);
  font-weight: 500;
  line-height: 1.35;
}

.auth-showcase-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--auth-muted);
  font-size: .94rem;
  line-height: 1.8;
}

.auth-showcase-stack {
  width: min(820px, 100%);
  padding: 20px 18px 0;
  position: relative;
}

.auth-showcase-stack::before,
.auth-showcase-stack::after {
  content: "";
  position: absolute;
  inset: 8px 36px -8px;
  border-radius: 25px;
  background: color-mix(in srgb, var(--auth-surface) 78%, transparent);
  border: 1px solid var(--auth-line);
}

.auth-showcase-stack::after {
  inset: 14px 54px -16px;
  z-index: 0;
  opacity: .65;
}

.auth-showcase-frame {
  height: clamp(360px, 48vh, 540px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  background: var(--auth-surface);
  box-shadow: 0 22px 50px rgba(37, 34, 72, .08);
}

.auth-showcase-slide {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 2.4vw, 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px) scale(.985);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}

.auth-showcase-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.auth-slide-copy {
  display: grid;
  gap: 3px;
  text-align: start;
}

.auth-slide-title {
  color: var(--auth-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 650;
}

.auth-showcase-image-wrap {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: var(--auth-soft);
}

.auth-showcase-image {
  display: block;
  max-width: 100%;
}

.auth-showcase-image-wide .auth-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.auth-showcase-slide-phone .auth-showcase-image-wrap {
  width: min(330px, 62%);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 18px 36px rgba(31, 27, 74, .12);
}

.auth-showcase-slide-phone .auth-showcase-image {
  width: 100%;
  height: auto;
}

.auth-showcase-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  direction: ltr;
  position: relative;
  z-index: 3;
}

.auth-showcase-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7c5d2;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.auth-showcase-dot.is-active {
  width: 28px;
  background: var(--auth-primary);
}

.auth-showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--auth-primary);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}

.auth-showcase-link svg {
  width: 17px;
  height: 17px;
  transition: transform .2s ease;
}

.auth-showcase-link:hover svg {
  transform: translateX(-3px);
}

html[dir="ltr"] .auth-showcase-link svg {
  transform: rotate(180deg);
}

.auth-form-panel {
  width: min(650px, 100%);
  min-width: 0;
  min-height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 28px clamp(20px, 4vw, 62px) 42px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  border: 0;
  background: transparent;
}

.auth-form-panel::-webkit-scrollbar {
  display: none;
}

.auth-panel-head {
  width: 100%;
  margin: 0 0 clamp(52px, 10vh, 110px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-site-logo {
  width: 96px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  overflow: hidden;
  text-decoration: none;
}

.auth-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right center;
}

.auth-logo-image[hidden] {
  display: none !important;
}

html[dir="ltr"] .auth-logo-image {
  object-position: left center;
}

.auth-logo-fallback,
.auth-logo-fallback svg {
  width: 42px;
  height: 42px;
  display: block;
}

.auth-logo-fallback[hidden] {
  display: none !important;
}

.auth-panel-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-actions {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.auth-icon-btn {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--auth-ink);
  border: 0;
  border-radius: 13px;
  background: var(--auth-soft);
  box-shadow: none;
}

.auth-icon-btn:hover {
  color: var(--auth-primary);
  background: var(--auth-primary-soft);
  transform: translateY(-1px);
}

.auth-icon-btn svg {
  width: 19px;
  height: 19px;
}

.auth-lang-switch {
  width: auto;
  padding-inline: 13px;
}

.auth-lang-label {
  font-size: .78rem;
  font-weight: 600;
}

.auth-secure-chip {
  min-height: 36px;
  padding: 7px 10px;
  color: #138a65;
  border: 0;
  border-radius: 999px;
  background: #e9f8f2;
}

html:not(.light) .auth-secure-chip {
  color: #69d6b3;
  background: #15342c;
}

.auth-tabs {
  min-height: 62px;
  margin: 0 0 34px;
  padding: 5px;
  gap: 5px;
  border: 0;
  border-radius: 16px;
  background: var(--auth-soft);
}

.auth-tab {
  color: var(--auth-muted);
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: .94rem;
  font-weight: 600;
}

.auth-tab.active {
  color: #ffffff;
  background: var(--auth-primary);
  box-shadow: none;
}

.form-title {
  color: var(--auth-ink);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 650;
}

.form-sub,
.form-label,
.login-note {
  color: var(--auth-muted);
}

.form-input,
.form-select {
  min-height: 56px;
  color: var(--auth-ink);
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--auth-soft);
  box-shadow: none;
}

.form-input:hover,
.form-select:hover {
  background: color-mix(in srgb, var(--auth-soft) 82%, var(--auth-primary-soft));
}

.form-input:focus,
.form-select:focus {
  border-color: var(--auth-primary);
  background: var(--auth-surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-primary) 12%, transparent);
}

.input-icon {
  color: var(--auth-muted);
}

.btn-submit,
.wizard-btn-primary {
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: var(--auth-primary);
  box-shadow: none;
}

.btn-submit:hover,
.wizard-btn-primary:hover {
  background: var(--auth-primary-dark);
  box-shadow: 0 10px 24px rgba(81, 69, 220, .2);
  transform: translateY(-1px);
}

.wizard-btn-secondary {
  border-color: transparent;
  background: var(--auth-soft);
}

.worship-option-card,
.registration-closed-notice,
.login-note {
  border-color: transparent;
  background: var(--auth-soft);
  box-shadow: none;
}

.worship-option-card.selected {
  border-color: var(--auth-primary);
  background: var(--auth-primary-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 10%, transparent);
}

.alert {
  border-width: 0;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .auth-container {
    grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
    gap: 26px;
  }

  .auth-brand {
    padding: 28px;
  }

  .auth-showcase-frame {
    height: clamp(350px, 46vh, 470px);
  }

  .auth-panel-head {
    margin-bottom: 58px;
  }

  .auth-secure-chip {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    padding: 0;
  }

  .auth-container {
    width: 100%;
    min-height: 100dvh;
    display: block;
  }

  .auth-brand {
    display: none;
  }

  .auth-form-panel {
    width: min(620px, 100%);
    min-height: 100dvh;
    max-height: none;
    padding: 18px 22px 38px;
    overflow: visible;
    background: var(--auth-page);
  }

  .auth-panel-head {
    margin-bottom: 38px;
    align-items: center;
  }

  .auth-site-logo {
    width: 90px;
    height: 42px;
  }

  .auth-logo-fallback,
  .auth-logo-fallback svg {
    width: 40px;
    height: 40px;
  }

  .auth-actions {
    display: flex;
  }
}

@media (max-width: 520px) {
  .auth-form-panel {
    padding: 14px 16px 30px;
  }

  .auth-panel-head {
    margin-bottom: 26px;
  }

  .auth-site-logo {
    width: 82px;
    height: 38px;
  }

  .auth-lang-switch {
    width: 44px;
    padding: 0;
  }

  .auth-lang-label {
    display: none;
  }

  .auth-tabs {
    min-height: 58px;
    margin-bottom: 26px;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .form-sub {
    margin-bottom: 24px;
  }

  .form-input,
  .form-select,
  .btn-submit,
  .wizard-btn-primary {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-showcase-slide,
  .auth-showcase-dot,
  .auth-showcase-link svg {
    transition: none !important;
  }
}
