/* Shared split-shell for Login / OTP / MPIN / Register */

.sf-auth-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 32px));
  min-height: min(640px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(0, 8, 24, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sf-auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 34px 28px;
  color: #e8eef8;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(99, 102, 241, 0.16), transparent 50%),
    linear-gradient(165deg, #021833 0%, #012251 48%, #010d1f 100%);
  overflow: hidden;
}

.sf-auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

.sf-auth-visual-brand,
.sf-auth-visual-copy,
.sf-auth-visual-art,
.sf-auth-visual-stats,
.sf-auth-visual-foot {
  position: relative;
  z-index: 1;
}

.sf-auth-visual-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.sf-auth-visual-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.sf-auth-visual-kicker {
  margin: 22px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.sf-auth-visual-copy h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 750;
  color: #fff;
}

.sf-auth-visual-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
  max-width: 36ch;
}

.sf-auth-visual-art {
  margin: 18px 0 16px;
  height: 168px;
}

.sf-auth-visual-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sf-auth-visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sf-auth-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.sf-auth-stat i {
  display: block;
  font-size: 18px;
  color: #38bdf8;
  margin-bottom: 4px;
}

.sf-auth-stat strong {
  display: block;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

.sf-auth-stat span {
  display: block;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.65);
}

.sf-auth-visual-foot {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.55);
}

.sf-auth-panel {
  display: flex;
  align-items: center;
  background: #fff;
  min-width: 0;
}

.sf-auth-shell .sf-auth-wrapper {
  max-width: none !important;
  width: 100%;
  padding: 8px 12px !important;
  margin: 0 !important;
}

.sf-auth-shell .sf-auth-card {
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  animation: none !important;
}

.sf-auth-shell .sf-auth-header {
  background: transparent !important;
  padding: 20px 28px 4px !important;
  text-align: left !important;
  overflow: visible !important;
}

.sf-auth-shell .sf-auth-header::before {
  display: none !important;
}

.sf-auth-shell .sf-auth-title {
  color: #0f172a !important;
  text-align: left;
  font-size: 24px !important;
}

.sf-auth-shell .sf-auth-subtitle {
  color: #64748b !important;
  text-align: left;
}

.sf-auth-shell .sf-auth-logo {
  margin: 0 0 12px !important;
  background: #012251;
}

.sf-auth-shell .sf-auth-icon {
  margin: 0 0 12px !important;
  background: linear-gradient(135deg, #012251, #0b3a75);
  color: #fff;
}

.sf-auth-shell .sf-mobile-display {
  background: #e8f0fb !important;
  color: #012251 !important;
}

.sf-auth-shell .sf-auth-body {
  padding: 16px 28px 28px !important;
}

@media (max-width: 860px) {
  .sf-auth-shell {
    grid-template-columns: 1fr;
    width: min(480px, calc(100vw - 20px));
    min-height: 0;
    border-radius: 22px;
  }

  .sf-auth-visual {
    padding: 20px 20px 16px;
  }

  .sf-auth-visual-copy h2 {
    font-size: 20px;
  }

  .sf-auth-visual-copy p,
  .sf-auth-visual-art,
  .sf-auth-visual-foot {
    display: none;
  }

  .sf-auth-visual-kicker {
    margin-top: 12px;
  }

  .sf-auth-visual-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .sf-auth-shell .sf-auth-header,
  .sf-auth-shell .sf-auth-body {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
