/* Modern auth pages (login/forgot/register)
   Loaded conditionally from themes/default/header.php */

.auth-page {
  background:
    radial-gradient(
      1200px 600px at 10% 10%,
      rgba(105, 108, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 90% 20%,
      rgba(3, 195, 236, 0.16),
      transparent 55%
    ),
    linear-gradient(135deg, #f6f8ff 0%, #f5fbff 60%, #f7fffb 100%);
}

.auth-page {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide app chrome on auth pages */
.auth-page #layout-menu,
.auth-page .layout-menu-toggle,
.auth-page .layout-overlay,
.auth-page .layout-navbar,
.auth-page .content-footer {
  display: none !important;
}

.auth-page .layout-wrapper,
.auth-page .layout-container,
.auth-page .layout-page {
  min-height: 100vh;
}

/* Remove left padding reserved for sidebar */
.auth-page .layout-page {
  padding-left: 0 !important;
}

/* Center content */
.auth-page .container-xxl.container-p-y {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.auth-page .auth-shell {
  width: 100%;
  max-width: 1080px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.auth-page .auth-card {
  border: 1px solid rgba(67, 89, 113, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 22px 55px rgba(31, 45, 61, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.auth-page .auth-card-body {
  padding: 2rem;
}

@media (max-width: 480px) {
  .auth-page .auth-card-body {
    padding: 1.25rem;
  }
}

.auth-page .auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-page .auth-brand img {
  width: 44px;
  height: 44px;
}

.auth-page .auth-brand-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 1.15rem;
}

.auth-page .auth-brand-sub {
  color: rgba(67, 89, 113, 0.7);
  font-size: 0.9rem;
}

.auth-page .auth-illustration {
  position: relative;
  padding: 0;
  background:
    radial-gradient(
      700px 360px at 30% 25%,
      rgba(105, 108, 255, 0.35),
      transparent 60%
    ),
    radial-gradient(
      520px 320px at 70% 60%,
      rgba(3, 195, 236, 0.25),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(105, 108, 255, 0.12), rgba(3, 195, 236, 0.08));
  border-right: 1px solid rgba(67, 89, 113, 0.08);
}

.auth-page .auth-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.45),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.35),
      transparent 38%
    );
  pointer-events: none;
}

.auth-page .auth-illustration-inner {
  position: relative;
  z-index: 1;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.auth-page .auth-illustration h2 {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.auth-page .auth-illustration p {
  color: rgba(67, 89, 113, 0.82);
}

.auth-page .auth-bullets {
  display: grid;
  gap: 0.5rem;
  color: rgba(67, 89, 113, 0.86);
}

.auth-page .auth-bullet {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
}

.auth-page .auth-bullet i {
  color: rgba(105, 108, 255, 0.95);
  font-size: 1.1rem;
}

.auth-page .auth-form .form-control {
  border-radius: 0.875rem;
}

.auth-page .auth-form .input-group > .btn {
  border-radius: 0.875rem;
}

.auth-page .auth-form .input-group-text {
  border-radius: 0.875rem;
}

.auth-page .auth-form .input-group-merge .form-control:not(:first-child) {
  padding-left: 0.25rem;
}

.auth-page .auth-form .btn-primary {
  border-radius: 0.875rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-weight: 700;
}

.auth-page .auth-hint {
  color: rgba(67, 89, 113, 0.75);
  font-size: 0.9rem;
}

.auth-page .auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .auth-page .auth-stats {
    grid-template-columns: 1fr;
  }
}

.auth-page .auth-stat {
  border: 1px solid rgba(67, 89, 113, 0.1);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.auth-page .auth-stat .icon {
  width: 42px;
  height: 42px;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: rgba(105, 108, 255, 0.14);
  color: rgba(105, 108, 255, 0.95);
  flex: 0 0 auto;
}

.auth-page .auth-stat .label {
  font-size: 0.85rem;
  color: rgba(67, 89, 113, 0.75);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.auth-page .auth-stat .value {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.85rem;
  color: rgba(67, 89, 113, 0.95);
  line-height: 1.05;
}

.auth-page .auth-stat .value .spinner-border {
  width: 1.35rem;
  height: 1.35rem;
}
