/* Account Module Specific Styles */

/* Public Pages (Sign-up, Sign-in, Verify Email, Forgot Password, Reset Password) */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f5f8 0%, #f8f9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Split-Screen Auth Container */
.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: white;
}

/* Left Panel - Image with Gradient Overlay */
.auth-image-panel {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3rem;
}

.auth-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 63, 208, 0.9) 0%,
    rgba(74, 50, 184, 0.85) 100%
  );
  z-index: 1;
}

.auth-image-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-logo {
  display: flex;
  align-items: center;
}

.auth-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-features-grid .feature-box {
  text-align: center;
  padding: 1rem;
}

.auth-benefits-list {
  margin-top: 2rem;
}

.benefit-check {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* New Modern Design Styles */
.auth-features-list {
  margin-top: 2rem;
}

.feature-icon-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.feature-icon-circle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.auth-bottom-trust {
  margin-top: auto;
}

.trust-avatars {
  display: flex;
  margin-left: -8px;
}

.trust-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-left: -8px;
  font-size: 0.9rem;
}

/* Right Panel - Form */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
}

.auth-form-content {
  width: 100%;
  max-width: 480px;
}

.auth-form-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.auth-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1bb874 0%, #16a065 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

/* Legacy Card Style (for simple pages) */
.auth-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.auth-card .card-body {
  padding: 2.5rem;
}

/* Primary Button - Purple Theme */
.btn-primary {
  background-color: #5b3fd0;
  border-color: #5b3fd0;
  color: white;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.btn-primary:hover {
  background-color: #4a32b8;
  border-color: #4a32b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(91, 63, 208, 0.3);
}

.btn-primary:active,
.btn-primary:focus {
  background-color: #3d2a9f;
  border-color: #3d2a9f;
}

.btn-primary:disabled {
  background-color: #5b3fd0;
  border-color: #5b3fd0;
  opacity: 0.65;
}

/* Outline Primary Button */
.btn-outline-primary {
  color: #5b3fd0;
  border-color: #5b3fd0;
  background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  background-color: #5b3fd0 !important;
  border-color: #5b3fd0 !important;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(91, 63, 208, 0.25) !important;
}

.btn-outline-primary:active {
  background-color: #4a32b8 !important;
  border-color: #4a32b8 !important;
  color: white !important;
}

/* Links */
a {
  color: #5b3fd0;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #4a32b8;
  text-decoration: underline;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
  border-color: #5b3fd0;
  box-shadow: 0 0 0 0.2rem rgba(91, 63, 208, 0.25);
}

.form-check-input:checked {
  background-color: #5b3fd0;
  border-color: #5b3fd0;
}

.form-check-input:focus {
  border-color: #5b3fd0;
  box-shadow: 0 0 0 0.2rem rgba(91, 63, 208, 0.25);
}

/* Icons */
.text-primary {
  color: #5b3fd0 !important;
}

.bi-envelope-check,
.bi-check-circle-fill,
.bi-x-circle-fill {
  display: inline-block;
}

/* Success State */
.text-success {
  color: #1bb874 !important;
}

/* Error State */
.text-danger {
  color: #e53e3e !important;
}

/* Warning State */
.text-warning {
  color: #ffa726 !important;
}

/* Alert Variants */
.alert-success {
  background-color: #d4f4e2;
  border-color: #1bb874;
  color: #16a065;
}

.alert-danger {
  background-color: #fed7d7;
  border-color: #e53e3e;
  color: #c53030;
}

.alert-warning {
  background-color: #fff3e0;
  border-color: #ffa726;
  color: #ff9800;
}

/* Verification Banner */
.verification-banner {
  background-color: #fff3e0;
  border: 1px solid #ffa726;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.verification-banner .btn-outline-warning {
  color: #ff9800;
  border-color: #ff9800;
}

.verification-banner .btn-outline-warning:hover {
  background-color: #ff9800;
  border-color: #ff9800;
  color: white;
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-image-panel {
    display: none !important;
  }

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

@media (max-width: 767.98px) {
  .auth-card .card-body {
    padding: 1.5rem;
  }

  .auth-page {
    padding: 1rem 0.5rem;
  }

  .auth-form-panel {
    padding: 1.5rem 1rem;
  }

  .auth-form-content {
    max-width: 100%;
  }
}

/* Profile Page Specific */
.profile-section {
  margin-bottom: 2rem;
}

.profile-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

/* Business Settings Page Specific */
.business-logo-preview {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

/* Status Badge */
.badge.bg-primary {
  background-color: #5b3fd0 !important;
}

.badge.bg-success {
  background-color: #1bb874 !important;
}

.badge.bg-warning {
  background-color: #ffa726 !important;
  color: #2d3748 !important;
}

.badge.bg-danger {
  background-color: #e53e3e !important;
}

/* Card Hover Effects */
.card {
  transition: all 0.2s ease-in-out;
}

.card:hover {
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Utility Classes */
.text-muted {
  color: #718096 !important;
}

.text-secondary {
  color: #718096 !important;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Gap Utilities */
.gap-sm {
  gap: 0.5rem;
}

.gap-base {
  gap: 0.75rem;
}

.gap-lg {
  gap: 1.5rem;
}

/* Margin Bottom Utilities */
.mb-xs {
  margin-bottom: 0.25rem;
}

.mb-base {
  margin-bottom: 0.75rem;
}

.mb-lg {
  margin-bottom: 1.5rem;
}

/* Space Y Utilities */
.space-y-base > * + * {
  margin-top: 0.75rem;
}

/* Propvera public/auth refresh - appended to preserve page behavior while upgrading the shared auth surface. */
:root {
  /* Auth colors mapped to match --theme-primary purple palette */
  --auth-primary: #5b3fd0;
  --auth-primary-dark: #3d2a9f;
  --auth-primary-soft: #e8e4f8;
  --auth-accent: #ffa726;
  --auth-accent-soft: #fff3e0;
  --auth-ink: #2d3748;
  --auth-muted: #718096;
  --auth-line: #e2e8f0;
  --auth-shadow: 0 28px 80px rgba(91, 63, 208, 0.14);
}

.auth-page {
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(91, 63, 208, 0.14),
      transparent 26rem
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(255, 167, 38, 0.16),
      transparent 24rem
    ),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #fff7f1 100%);
  padding: 1.5rem 0;
}

.auth-container {
  width: min(1180px, calc(100% - 32px));
  min-height: min(820px, calc(100vh - 48px));
  border: 1px solid rgba(91, 63, 208, 0.12);
  border-radius: 22px;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.auth-image-panel {
  overflow: hidden;
}

.auth-image-panel,
.auth-image-panel[style] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(
      circle at 68% 22%,
      rgba(255, 167, 38, 0.38),
      transparent 18rem
    ),
    linear-gradient(135deg, rgba(91, 63, 208, 0.96), rgba(10, 44, 97, 0.96)) !important;
  background-size:
    36px 36px,
    36px 36px,
    auto,
    auto !important;
}

.auth-image-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 167, 38, 0.28),
    transparent 64%
  );
  filter: blur(8px);
  z-index: 0;
}

.auth-image-overlay {
  background: linear-gradient(
    135deg,
    rgba(91, 63, 208, 0.82),
    rgba(10, 44, 97, 0.72)
  );
}

.auth-image-content {
  z-index: 2;
}

.auth-hero-text h1,
.auth-hero-text h6 {
  letter-spacing: 0;
}

.feature-icon-circle,
.benefit-check,
.trust-avatar {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-form-panel {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 167, 38, 0.07),
      transparent 18rem
    ),
    rgba(255, 255, 255, 0.94);
}

.auth-form-content > .text-center:first-child a {
  background: var(--auth-primary-soft);
  border: 1px solid rgba(91, 63, 208, 0.12);
  border-radius: 999px;
  color: var(--auth-primary) !important;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

.auth-form-content h1,
.auth-form-content h2,
.auth-form-content h3,
.auth-form-content h4 {
  color: var(--auth-ink);
}

.auth-card,
.auth-form-panel .card {
  border: 1px solid var(--auth-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(91, 63, 208, 0.1) !important;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--auth-primary),
    var(--auth-primary-dark)
  ) !important;
  border-color: var(--auth-primary) !important;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--auth-primary-dark),
    var(--auth-primary)
  ) !important;
  border-color: var(--auth-primary-dark) !important;
  box-shadow: 0 14px 32px rgba(91, 63, 208, 0.24) !important;
}

.btn-outline-primary {
  color: var(--auth-primary) !important;
  border-color: var(--auth-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--auth-primary) !important;
  border-color: var(--auth-primary) !important;
  color: #fff !important;
}

.auth-page a,
.auth-page .text-primary {
  color: var(--auth-primary) !important;
}

.auth-page a:hover {
  color: var(--auth-primary-dark) !important;
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 0.2rem rgba(91, 63, 208, 0.16);
}

.auth-page .form-check-input:checked {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
}

.auth-success-icon {
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
}

@media (max-width: 991.98px) {
  .auth-container {
    width: min(100% - 24px, 620px);
    min-height: auto;
    margin: 1.5rem 0;
  }
}

/* AuthLayout refresh */
.auth-layout-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(91, 63, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 63, 208, 0.035) 1px, transparent 1px),
    radial-gradient(
      circle at 12% 18%,
      rgba(91, 63, 208, 0.14),
      transparent 22rem
    ),
    radial-gradient(
      circle at 86% 18%,
      rgba(255, 167, 38, 0.15),
      transparent 24rem
    ),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 46%, #fff7f1 100%);
  background-size:
    42px 42px,
    42px 42px,
    auto,
    auto,
    auto;
  color: var(--auth-ink);
}

.auth-layout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.25rem 0 0;
}

.auth-layout-brand,
.auth-layout-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.auth-layout-brand {
  min-width: 0;
}

.auth-layout-home {
  gap: 0.25rem;
  border: 1px solid rgba(91, 63, 208, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--auth-primary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  box-shadow: 0 12px 30px rgba(91, 63, 208, 0.08);
}

.auth-layout-home i {
  font-size: 1.35rem;
  line-height: 1;
}

.auth-layout-main {
  min-height: calc(100vh - 75px);
  display: grid;
  align-items: center;
  padding: 1.25rem 0 2rem;
}

.auth-layout-main > .auth-page {
  min-height: auto;
  background: transparent;
  padding: 0;
}

.auth-layout-main .auth-container {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}

.auth-visual {
  position: relative;
  isolation: isolate;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
}

.auth-visual-login {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(
      circle at 72% 18%,
      rgba(255, 167, 38, 0.34),
      transparent 18rem
    ),
    linear-gradient(135deg, #5b3fd0 0%, #3d2a9f 100%) !important;
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto !important;
}

.auth-visual-signup {
  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(255, 255, 255, 0.18),
      transparent 12rem
    ),
    radial-gradient(
      circle at 78% 22%,
      rgba(255, 167, 38, 0.34),
      transparent 17rem
    ),
    linear-gradient(145deg, #5b3fd0 0%, #4a32b8 48%, #3d2a9f 100%) !important;
}

.auth-visual-recovery,
.auth-visual-reset,
.auth-visual-secure,
.auth-visual-onboarding {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 38%),
    radial-gradient(
      circle at 75% 24%,
      rgba(255, 167, 38, 0.28),
      transparent 18rem
    ),
    linear-gradient(145deg, #3d2a9f 0%, #5b3fd0 100%) !important;
}

.auth-visual-verify {
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(255, 167, 38, 0.36),
      transparent 18rem
    ),
    radial-gradient(
      circle at 18% 78%,
      rgba(255, 255, 255, 0.14),
      transparent 14rem
    ),
    linear-gradient(145deg, #5b3fd0 0%, #3d2a9f 100%) !important;
}

.auth-visual-logout {
  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(255, 167, 38, 0.28),
      transparent 15rem
    ),
    linear-gradient(145deg, #3d2a9f 0%, #5b3fd0 100%) !important;
}

.auth-page-forgot-password .auth-form-content,
.auth-page-reset-password .auth-form-content,
.auth-page-verify-email .auth-form-content,
.auth-page-first-password .auth-form-content,
.auth-page-change-password .auth-form-content {
  max-width: 500px;
}

.auth-page-login .auth-form-content {
  max-width: 460px;
}

.auth-page-signup .auth-form-content {
  max-width: 660px;
}

.auth-container-compact {
  width: min(540px, calc(100% - 32px));
  min-height: auto;
  margin: 0 auto;
}

.auth-form-panel-compact {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 20px;
}

.auth-form-panel-compact .auth-form-content {
  max-width: 460px;
  padding-block: 3rem;
}

.auth-page-two-factor .card,
.auth-page-two-factor-recovery .card {
  overflow: hidden;
}

.auth-page-two-factor .card-body,
.auth-page-two-factor-recovery .card-body {
  padding: 2rem !important;
}

.auth-page-two-factor .fa-shield-alt,
.auth-page-two-factor-recovery .fa-unlock-alt {
  display: inline-grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--auth-primary-soft);
  color: var(--auth-primary) !important;
  font-size: 2rem;
}

.auth-page-two-factor-recovery .fa-unlock-alt {
  background: var(--auth-accent-soft);
  color: var(--auth-accent) !important;
}

.auth-page-two-factor #code-input {
  min-height: 58px;
  border-radius: 12px;
  letter-spacing: 0.36em !important;
  font-weight: 800;
}

.auth-page .alert {
  border-radius: 12px;
}

.auth-page .input-group-text {
  color: var(--auth-muted);
}

@media (max-width: 991.98px) {
  .auth-layout-header {
    padding-top: 1rem;
  }

  .auth-layout-main {
    align-items: start;
    min-height: calc(100vh - 72px);
  }

  .auth-layout-main .auth-container {
    border-radius: 18px;
  }
}

@media (max-width: 575.98px) {
  .auth-layout-header {
    width: min(100% - 24px, 620px);
  }

  .auth-layout-home span {
    display: none;
  }

  .auth-form-panel-compact .auth-form-content,
  .auth-page .auth-form-content {
    padding-inline: 1.25rem;
  }
}

/* Premium auth system polish */
.auth-layout-shell {
  position: relative;
  overflow-x: hidden;
}

.auth-layout-shell::before,
.auth-layout-shell::after {
  content: "";
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.45;
  z-index: 0;
  animation: authGlowDrift 18s ease-in-out infinite alternate;
}

.auth-layout-shell::before {
  left: -10rem;
  top: 8rem;
  background: rgba(91, 63, 208, 0.18);
}

.auth-layout-shell::after {
  right: -10rem;
  bottom: -8rem;
  background: rgba(255, 167, 38, 0.18);
  animation-delay: -6s;
}

.auth-layout-header,
.auth-layout-main {
  position: relative;
  z-index: 1;
}

.auth-layout-main .auth-container {
  animation: authShellIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-image-panel {
  min-width: 43%;
}

.auth-image-content {
  gap: 1.5rem;
}

.auth-logo {
  opacity: 0.94;
}

.auth-logo img,
.auth-logo svg {
  max-width: 154px;
  height: auto !important;
}

.auth-hero-text {
  position: relative;
}

.auth-hero-text::after {
  content: "";
  display: block;
  width: min(100%, 390px);
  height: 142px;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08))
      22px 28px / 38% 10px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04))
      22px 54px / 68% 8px no-repeat,
    linear-gradient(90deg, rgba(255, 167, 38, 0.5), rgba(255, 255, 255, 0.16))
      22px 96px / 25% 22px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08))
      138px 96px / 25% 22px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08))
      254px 96px / 25% 22px no-repeat,
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 26px 60px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.auth-page-signup .auth-hero-text::after {
  height: 118px;
  background:
    radial-gradient(
      circle at 36px 32px,
      rgba(255, 167, 38, 0.72) 0 8px,
      transparent 9px
    ),
    radial-gradient(
      circle at 92px 32px,
      rgba(255, 255, 255, 0.5) 0 8px,
      transparent 9px
    ),
    radial-gradient(
      circle at 148px 32px,
      rgba(255, 255, 255, 0.5) 0 8px,
      transparent 9px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08))
      24px 70px / 75% 10px no-repeat,
    linear-gradient(90deg, rgba(255, 167, 38, 0.44), rgba(255, 255, 255, 0.1))
      24px 92px / 52% 8px no-repeat,
    rgba(255, 255, 255, 0.1);
}

.auth-page-forgot-password .auth-hero-text::after,
.auth-page-reset-password .auth-hero-text::after,
.auth-page-verify-email .auth-hero-text::after,
.auth-page-first-password .auth-hero-text::after,
.auth-page-change-password .auth-hero-text::after {
  height: 118px;
  background:
    linear-gradient(135deg, rgba(255, 167, 38, 0.45), rgba(255, 255, 255, 0.12))
      26px 26px / 58px 58px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08))
      108px 30px / 58% 10px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06))
      108px 56px / 70% 8px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06))
      26px 94px / 82% 8px no-repeat,
    rgba(255, 255, 255, 0.1);
}

.auth-form-content {
  position: relative;
  border: 1px solid rgba(91, 63, 208, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.9)
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 167, 38, 0.08),
      transparent 14rem
    );
  box-shadow: 0 20px 60px rgba(91, 63, 208, 0.1);
  padding: 2rem;
  animation: authContentIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms both;
}

.auth-form-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(91, 63, 208, 0.12),
    transparent 38%,
    rgba(255, 167, 38, 0.12)
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.auth-form-content > .text-center.mb-4 h1,
.auth-form-content > .text-center.mb-4 h2 {
  letter-spacing: 0;
}

.auth-form-content > .text-center.mb-4::before {
  content: "TheMenuScan secure access";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 63, 208, 0.12);
  border-radius: 999px;
  background: rgba(91, 63, 208, 0.06);
  color: var(--auth-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38rem 0.72rem;
  margin-bottom: 0.9rem;
}

.auth-page-signup .auth-form-content > .text-center.mb-4::before {
  content: "Start trial";
}

.auth-page-forgot-password .auth-form-content > .text-center.mb-4::before,
.auth-page-reset-password .auth-form-content > .text-center.mb-4::before {
  content: "Account recovery";
}

.auth-page-change-password .auth-form-content > .text-center.mb-4::before,
.auth-page-first-password .auth-form-content > .text-center.mb-4::before {
  content: "Password security";
}

.auth-page .form-label {
  color: #27364f;
  font-size: 0.92rem;
}

.auth-page .form-control,
.auth-page .form-select,
.auth-page .input-group-text {
  border-color: rgba(91, 63, 208, 0.14);
  background-color: rgba(255, 255, 255, 0.94) !important;
}

.auth-page .form-control,
.auth-page .form-select {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.auth-page .form-control:hover,
.auth-page .form-select:hover {
  border-color: rgba(91, 63, 208, 0.28);
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
  transform: translateY(-1px);
}

.auth-page .btn {
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-page .btn-lg {
  min-height: 52px;
}

.auth-page .btn-primary {
  position: relative;
  overflow: hidden;
}

.auth-page .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.34) 45%,
    transparent 72%
  );
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.auth-page .btn-primary:hover::after {
  transform: translateX(130%);
}

.auth-page .alert-info {
  color: #17406d;
  background: rgba(91, 63, 208, 0.08);
  border: 1px solid rgba(91, 63, 208, 0.12) !important;
}

.auth-page .alert-warning {
  color: #73390a;
  background: rgba(255, 167, 38, 0.1);
  border: 1px solid rgba(255, 167, 38, 0.18) !important;
}

.auth-page .alert-success {
  border: 1px solid rgba(27, 184, 116, 0.18);
  box-shadow: 0 12px 32px rgba(27, 184, 116, 0.08);
}

.auth-page .alert-danger {
  border: 1px solid rgba(229, 62, 62, 0.18);
}

.auth-success-icon {
  box-shadow: 0 18px 42px rgba(91, 63, 208, 0.18);
  animation: authSuccessPop 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-page-two-factor .auth-form-content::after,
.auth-page-two-factor-recovery .auth-form-content::after {
  content: "";
  display: block;
  height: 5px;
  width: 92px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--auth-primary), var(--auth-accent));
  margin: 1.25rem auto 0;
}

.auth-page-logout .spinner-border,
.auth-page-verify-email .spinner-border {
  border-width: 0.22rem;
  filter: drop-shadow(0 12px 24px rgba(91, 63, 208, 0.18));
}

@keyframes authShellIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes authGlowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2rem, -1rem, 0) scale(1.06);
  }
}

@keyframes authSuccessPop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-layout-shell::before,
  .auth-layout-shell::after,
  .auth-layout-main .auth-container,
  .auth-form-content,
  .auth-success-icon {
    animation: none !important;
  }

  .auth-page .form-control:focus,
  .auth-page .form-select:focus,
  .auth-page .btn-primary:hover {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .auth-form-content {
    box-shadow: none;
    border-color: transparent;
    background: transparent;
    padding: 1.75rem;
  }

  .auth-form-content::before,
  .auth-hero-text::after {
    display: none;
  }
}

/* Final auth rendering guardrails */
.auth-layout-shell .auth-layout-brand .logo-img {
  max-width: 150px !important;
  object-fit: contain;
}

.auth-layout-shell .auth-page {
  min-height: auto !important;
  background: transparent !important;
}

.auth-layout-shell .auth-container {
  display: grid !important;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  width: min(1440px, calc(100% - 32px)) !important;
  min-height: auto !important;
  max-height: none;
  margin: 0 auto !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.auth-layout-shell .auth-image-panel {
  min-height: 720px;
  padding: 2.25rem !important;
  color: #fff;
}

.auth-layout-shell .auth-image-panel .logo-img {
  height: 44px !important;
  max-width: 172px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.auth-layout-shell .auth-hero-text h1,
.auth-layout-shell .auth-hero-text p,
.auth-layout-shell .auth-features-list h6,
.auth-layout-shell .auth-features-list p,
.auth-layout-shell .auth-bottom-trust,
.auth-layout-shell .auth-bottom-trust p,
.auth-layout-shell .auth-bottom-trust span {
  color: #fff !important;
}

.auth-layout-shell .auth-form-panel {
  padding: clamp(1.5rem, 3vw, 3rem) !important;
}

.auth-layout-shell .auth-form-content {
  max-height: none;
}

.auth-layout-shell .btn-primary {
  background: linear-gradient(
    135deg,
    var(--auth-primary),
    var(--auth-primary-dark)
  ) !important;
  border-color: var(--auth-primary) !important;
}

.auth-layout-shell .btn-primary:hover,
.auth-layout-shell .btn-primary:focus {
  background: linear-gradient(
    135deg,
    var(--auth-primary-dark),
    var(--auth-primary)
  ) !important;
  border-color: var(--auth-primary-dark) !important;
}

.auth-layout-shell .btn-primary:disabled {
  background: linear-gradient(
    135deg,
    var(--auth-primary),
    var(--auth-primary-dark)
  ) !important;
  border-color: var(--auth-primary) !important;
}

.auth-layout-shell a {
  color: var(--auth-primary) !important;
}

.auth-layout-shell .auth-layout-home {
  color: var(--auth-primary) !important;
}

@media (max-width: 991.98px) {
  .auth-layout-shell .auth-container,
  .auth-layout-shell .auth-container-compact {
    display: block !important;
    width: min(100% - 24px, 640px) !important;
    min-height: auto !important;
  }

  .auth-layout-shell .auth-image-panel {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .auth-layout-shell .auth-form-panel {
    padding: 1rem !important;
  }
}

/* Simplified Web 3.0 light auth visual */
.auth-layout-shell .auth-container {
  grid-template-columns: minmax(340px, 0.82fr) minmax(430px, 1.18fr);
  border: 1px solid rgba(91, 63, 208, 0.1) !important;
  box-shadow: 0 28px 90px rgba(91, 63, 208, 0.12) !important;
}

.auth-layout-shell .auth-image-panel {
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.96),
      transparent 10rem
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 167, 38, 0.18),
      transparent 15rem
    ),
    radial-gradient(
      circle at 28% 88%,
      rgba(91, 63, 208, 0.17),
      transparent 17rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.88),
      rgba(232, 240, 252, 0.86)
    ) !important;
}

.auth-layout-shell .auth-image-panel::before {
  inset: 0.9rem;
  border-color: rgba(91, 63, 208, 0.12);
  background:
    linear-gradient(rgba(91, 63, 208, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 63, 208, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
}

.auth-layout-shell .auth-image-panel::after {
  right: -6rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(
    circle,
    rgba(255, 167, 38, 0.18),
    transparent 64%
  );
  animation: authPanelGlow 12s ease-in-out infinite alternate;
}

.auth-layout-shell .auth-image-content {
  z-index: 2;
  max-width: 420px;
}

.auth-layout-shell .auth-image-panel .logo-img {
  filter: none;
}

.auth-layout-shell .auth-hero-text {
  flex: 0;
  justify-content: flex-start;
  margin-top: clamp(2rem, 8vh, 5rem);
}

.auth-layout-shell .auth-hero-text h1,
.auth-layout-shell .auth-hero-text p,
.auth-layout-shell .auth-features-list h6,
.auth-layout-shell .auth-features-list p,
.auth-layout-shell .auth-bottom-trust,
.auth-layout-shell .auth-bottom-trust p,
.auth-layout-shell .auth-bottom-trust span {
  color: var(--auth-ink) !important;
}

.auth-layout-shell .auth-hero-text h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.04;
}

.auth-layout-shell .auth-hero-text > p {
  max-width: 34ch;
  color: var(--auth-muted) !important;
  font-size: 1rem !important;
}

.auth-layout-shell .auth-hero-text::after {
  display: none;
}

.auth-layout-shell .auth-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem !important;
}

.auth-layout-shell .auth-features-list .d-flex {
  align-items: center !important;
  width: auto;
  margin: 0 !important;
  border: 1px solid rgba(91, 63, 208, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(91, 63, 208, 0.08);
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  backdrop-filter: blur(14px);
  animation: authChipIn 520ms ease both;
}

.auth-layout-shell .auth-features-list .d-flex:nth-child(2) {
  animation-delay: 80ms;
}

.auth-layout-shell .auth-features-list .d-flex:nth-child(3) {
  animation-delay: 160ms;
}

.auth-layout-shell .feature-icon-circle,
.auth-layout-shell .benefit-check {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(91, 63, 208, 0.1),
    rgba(255, 167, 38, 0.1)
  );
  color: var(--auth-primary);
  font-size: 1rem;
  margin-right: 0.55rem !important;
}

.auth-layout-shell .auth-features-list h6 {
  margin: 0 !important;
  font-size: 0.84rem;
}

.auth-layout-shell .auth-features-list p {
  display: none;
}

.auth-layout-shell .auth-bottom-trust {
  margin-top: auto;
  border: 1px solid rgba(91, 63, 208, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px rgba(91, 63, 208, 0.08);
  padding: 0.85rem;
  backdrop-filter: blur(14px);
}

.auth-layout-shell .auth-bottom-trust i {
  color: var(--auth-accent);
}

.auth-layout-shell .trust-avatar {
  background: rgba(91, 63, 208, 0.08);
  color: var(--auth-primary);
  border-color: rgba(91, 63, 208, 0.12);
}

.auth-layout-shell .text-warning {
  color: var(--auth-accent) !important;
}

.auth-layout-shell .auth-form-content {
  min-height: auto;
  border-radius: 18px;
}

.auth-page-forgot-password .auth-form-content,
.auth-page-reset-password .auth-form-content,
.auth-page-verify-email .auth-form-content,
.auth-page-first-password .auth-form-content,
.auth-page-change-password .auth-form-content {
  max-width: 470px;
}

@keyframes authPanelGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2rem, -1rem, 0) scale(1.08);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .auth-layout-shell .auth-image-panel::after,
  .auth-layout-shell .auth-features-list .d-flex {
    animation: none !important;
  }
}
