/* Dynamic Split Auth Experience */
.auth-page-wrap {
  background:
    radial-gradient(circle at 12% 15%, rgba(13, 148, 136, 0.12), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(99, 95, 250, 0.12), transparent 44%),
    linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  min-height: calc(100vh - 140px);
  padding: 2rem 0 3.5rem;
}

.auth-split-shell {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 2.25rem;
  color: #f8fafc;
  background: linear-gradient(150deg, #062538 0%, #0b3a5c 52%, var(--auth-accent, #0d9488) 100%);
  box-shadow: 0 22px 48px rgba(11, 58, 92, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-showcase-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
  pointer-events: none;
  animation: dhAuthFloat 9s ease-in-out infinite;
}

@keyframes dhAuthFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 16px) scale(1.06); }
}

.auth-showcase-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-showcase-title {
  position: relative;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 1.35rem 0 1.25rem;
  color: #ffffff;
}

.auth-showcase-list {
  position: relative;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.auth-showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.94);
}

.auth-showcase-list i {
  color: #5eead4;
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.auth-showcase-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-stat-chip {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
}

.auth-stat-chip strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.auth-stat-chip span {
  display: block;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.9);
}

.auth-showcase-footer {
  position: relative;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 0.9rem;
}

.auth-split-shell .auth-card.auth-box {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  animation: dhAuthFadeIn 0.35s ease;
}

@keyframes dhAuthFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 auto 1.25rem;
  max-width: 1020px;
  justify-content: center;
}

.auth-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #dbe4ee;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.auth-role-pill:hover {
  border-color: #0d9488;
  color: #0d9488;
  transform: translateY(-1px);
}

.auth-role-pill.is-active {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}

.auth-role-pill--subtle {
  background: #f1f5f9;
}

/* Interactive Tabs & Fields */
.auth-split-shell .tabs-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.auth-split-shell .tabs-login a {
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  font-size: 0.9rem;
  transition: all 0.18s ease;
}

.auth-split-shell .tabs-login a.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-split-shell .form-row input,
.auth-split-shell .form-row select,
.auth-split-shell .form-row textarea,
.auth-split-shell .auth-password-wrap,
.auth-split-shell .auth-submit {
  max-width: 100%;
}

.auth-field-feedback {
  font-size: 0.78rem;
  margin-top: 0.3rem;
  min-height: 1.05em;
  font-weight: 600;
}

.auth-field-feedback.is-ok { color: #059669; }
.auth-field-feedback.is-warn { color: #d97706; }
.auth-field-feedback.is-err { color: #dc2626; }

.auth-strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 0.4rem;
}

.auth-strength-seg {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background-color 0.2s ease;
}

.auth-capslock-badge {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.auth-remember-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
}

.auth-remember-row .auth-forgot {
  margin: 0;
}

.auth-client-error {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .auth-split-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-showcase {
    padding: 1.5rem;
  }
  .auth-showcase-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .auth-showcase-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-split-shell .auth-card.auth-box {
    padding: 1.35rem;
  }
}
