/* Auth split-screen layout (LawGPT-style, CyberJustice theme) */

.auth-body {
  min-height: 100dvh;
  background: var(--cj-body, #FAF9F8);
  overflow-x: hidden;
}

.cj-site-frame--auth .cj-grid-section--body {
  min-height: 100dvh;
}

.auth-split {
  display: flex;
  min-height: 100dvh;
}

/* ── Left panel: features ── */
.auth-split-features {
  flex: 1 1 50%;
  background: var(--cj-light, #F3F0EB);
  border-right: 1px solid var(--cj-border, #CDCDCD);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.auth-features-inner {
  max-width: 480px;
  width: 100%;
}

.auth-brand {
  margin-bottom: 0.75rem;
}

.auth-tagline {
  color: var(--cj-text-muted, #666);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cj-white, #fff);
  border: 1px solid rgba(198, 186, 175, 0.9);
  border-radius: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.auth-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.auth-feature-item .cj-feature-icon {
  margin-top: 2px;
}

.auth-feature-text h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cj-dark, #121212);
  margin: 0 0 0.2rem;
}

.auth-feature-text p {
  font-size: 0.85rem;
  color: var(--cj-text-muted, #666);
  margin: 0;
  line-height: 1.45;
}

/* ── Right panel: form ── */
.auth-split-form {
  flex: 1 1 50%;
  background: var(--cj-white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--cj-dark, #121212);
  margin-bottom: 0.35rem;
}

.auth-form-subtitle {
  color: var(--cj-text-muted, #666);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.auth-form-wrap .form-control {
  border-radius: 12px;
  border: 1px solid var(--cj-border, #CDCDCD);
  padding: 14px 16px;
  font-size: 0.95rem;
  background: var(--cj-white, #fff);
}

.auth-form-wrap .form-control:focus {
  border-color: var(--cj-dark, #121212);
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.08);
}

.auth-form-wrap .form-control::placeholder {
  color: #aaa;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .form-control {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: #999;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
}

.auth-password-toggle:hover {
  color: var(--cj-dark, #121212);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px 1.75rem 14px 3rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  margin-top: 0.5rem;
}

.auth-submit-btn.cj-btn-glow .cj-btn-glow-dot {
  left: 1.25rem;
}

.auth-legal {
  font-size: 0.72rem;
  color: #999;
  line-height: 1.55;
  margin-top: 1.75rem;
  text-align: center;
}

.auth-footer-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--cj-text-muted, #666);
  font-size: 0.9rem;
  text-decoration: none;
}

.auth-footer-link:hover {
  color: var(--cj-primary, #E48800);
}

.auth-footer-link strong {
  color: var(--cj-dark, #121212);
  font-weight: 600;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cj-text-muted, #666);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.auth-back-link:hover {
  color: var(--cj-dark, #121212);
}

.auth-form-wrap .alert-danger {
  border-radius: 12px;
  font-size: 0.875rem;
  border: 1px solid #f5c2c7;
  background: #fef2f2;
}

/* Signup: slightly wider form */
.auth-form-wrap--wide {
  max-width: 440px;
}

/* Mobile: stack panels */
@media (max-width: 991.98px) {
  .auth-split {
    flex-direction: column;
  }

  .auth-split-features {
    border-right: none;
    border-bottom: 1px solid var(--cj-border, #CDCDCD);
    padding: 2rem 1.5rem;
  }

  .auth-features-inner {
    max-width: 100%;
  }

  .auth-tagline {
    margin-bottom: 1.5rem;
  }

  .auth-feature-list {
    gap: 0.5rem;
  }

  .auth-feature-item {
    padding: 0.85rem 1rem;
  }

  .auth-split-form {
    padding: 2rem 1.5rem 3rem;
  }
}

@media (max-width: 575.98px) {
  .cj-brand-logo--auth {
    height: 40px;
    max-width: 220px;
  }

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