@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Auth pages – split layout: scrollable content + fixed form */

.auth-page {
  background: #eef2f7;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: calc(100vh - 72px);
}

.auth-split-layout {
  min-height: calc(100vh - 72px);
}

.auth-split-layout > .row {
  margin: 0;
  min-height: calc(100vh - 72px);
}

/* Override admin.css global heading/paragraph resets */
.auth-page .auth-content-pane h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.auth-page .auth-content-pane h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  margin: 2rem 0 1rem !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.auth-page .auth-content-pane h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
}

.auth-page .auth-content-pane p {
  color: #475569 !important;
  line-height: 1.75 !important;
  margin: 0 0 1rem !important;
}

.auth-content-pane {
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-content-inner {
  max-width: 820px;
  margin: 0 auto;
}

.auth-page .auth-content-pane .auth-lead {
  font-size: 1.08rem !important;
  color: #1e293b !important;
  font-weight: 500;
}

.auth-checklist {
  list-style: none;
  margin: 0 0 1.5rem !important;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.auth-checklist li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.25rem;
  color: #334155;
  line-height: 1.55;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 0.7rem;
  color: #2563eb;
  font-weight: 700;
}

.auth-content-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.auth-content-card p:last-child {
  margin-bottom: 0 !important;
}

.auth-form-pane {
  background: #fff;
  border-left: 1px solid #e2e8f0;
  padding: 2rem 1.75rem;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.04);
}

.auth-form-sticky {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-sidebar-card {
  background: linear-gradient(135deg, #0a1628 0%, #1e40af 55%, #3b82f6 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.auth-sidebar-card h3 {
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-sidebar-card p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.auth-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.auth-form-card h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  text-align: center;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  color: #0f172a !important;
}

.auth-form-card .auth-form-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-form-card label {
  font-weight: 600;
  color: #334155;
  font-size: 0.9rem;
}

.auth-form-card .form-control {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
}

.auth-form-card .form-control:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  border-color: #3b82f6 !important;
}

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

.auth-password-wrap .form-control {
  padding-right: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  opacity: 0.55;
  line-height: 1;
}

.auth-password-toggle:hover {
  opacity: 0.85;
}

.auth-form-card .btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-form-card .btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.auth-trust-section {
  margin-top: 1.5rem;
  padding: 1.25rem 1rem 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  background: linear-gradient(180deg, transparent, #f8fafc);
  border-radius: 0 0 12px 12px;
  margin-left: -1.75rem;
  margin-right: -1.75rem;
  margin-bottom: -1.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 1.5rem;
}

.auth-trust-section h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  margin: 0 0 0.5rem !important;
}

.auth-trust-section p {
  font-size: 0.9rem !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.auth-cta-note {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  text-align: center;
}

.auth-form-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-form-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .auth-split-layout > .row {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .auth-content-pane {
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 2.5rem 3rem;
  }

  .auth-form-pane {
    height: calc(100vh - 72px);
    overflow-y: auto;
    position: sticky;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2.5rem;
  }

  .auth-form-sticky {
    position: sticky;
    top: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .auth-form-pane {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 1.25rem 2.5rem;
    box-shadow: none;
  }

  .auth-content-pane {
    padding: 2rem 1.25rem 1rem;
  }

  .auth-trust-section {
    margin-left: -1.75rem;
    margin-right: -1.75rem;
  }
}
