/**
 * Auth Pages Stylesheet
 * Modern, clean design for login, register, and password reset pages
 */
:root {
  /* Brand — 全站主色，改此处即可统一 header / footer 等 */
  --primary: #00332E;
  --primary-rgb: 2, 55, 45;
  --primary-deep: #012820;
  --primary-hover: #1e4d2e;
  --primary-active: #163d24;
  --primary-light: #bfcbe0;
  --primary-dark: #1e3c72;
  --secondary: #1e3c72;
  --secondary-rgb: 30, 60, 114;
  --gradient-primary: var(--primary);
  --background-color: #FCF9F4;

  /* Accent — 页脚金色强调、装饰线等 */
  --accent: #D4AF37;
  --accent-rgb: 212, 175, 55;
  --accent-soft: rgba(var(--accent-rgb), 0.28);
  --accent-divider: rgba(var(--accent-rgb), 0.22);
  --accent-glow-sm: rgba(var(--accent-rgb), 0.05);
  --accent-glow-md: rgba(var(--accent-rgb), 0.04);

  /* Text */
  --text: #374151;
  --text-body: #333333;
  --text-muted: #6c757d;
  --text-on-primary: #ffffff;
  --text-on-primary-muted: rgba(255, 255, 255, 0.82);

  /* Surfaces & borders */
  --white: #ffffff;
  --dark: #2c3e50;
  --light: #f8f9fa;
  --surface-hover: #f3f4f6;
  --border-color: #e0e0e0;
  --border-light: #e5e7eb;

  /* Feedback */
  --success: #28a745;
  --success-soft: #d4edda;
  --info: #17a2b8;
  --info-soft: #d1ecf1;
  --warning: #ffc107;
  --warning-soft: #fff3cd;
  --danger: #dc3545;

  /* Effects & layout */
  --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --shadow-header: 0 1px 8px rgba(0, 0, 0, 0.06);
  --shadow-panel: -4px 0 24px rgba(0, 0, 0, 0.12);
  --overlay-scrim: rgba(0, 0, 0, 0.4);
  --overlay-on-primary: rgba(0, 0, 0, 0.12);
  --layout-max-width: 1320px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  min-height: 100vh;
}

.tour-fixed-btn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  margin-bottom: 0 !important;
  display: none;
  width: max-content;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.tour-fixed-btn .tour-fixed-btn__cta {
  pointer-events: auto;
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 16px 36px;
  border: none;
  border-radius: 999px;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff !important;
  background-color: #be192a !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.08);
  -webkit-box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.08);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.tour-fixed-btn .tour-fixed-btn__cta:hover,
.tour-fixed-btn .tour-fixed-btn__cta:focus-visible {
  background-color: var(--primary) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.tour-fixed-btn .tour-fixed-btn__cta:active {
  transform: translateY(1px);
}

@media (min-width: 768px) {
  .tour-fixed-btn {
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .tour-fixed-btn .tour-fixed-btn__cta {
    padding: 15px 30px;
    font-size: 14px;
  }
}
/* TOP */
.to-top {
  position: fixed;
  bottom: 65px;
  z-index: 998;
  display: none;
  width: 48px;
  height: 48px;
  background: var(--primary);
  cursor: pointer;
  margin-bottom: 0 !important;
  box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.4);
  -webkit-box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
}
.to-top .info-text {
  position: relative;
  display: inline-block;
  font-size: 12px;
  top: -6px;
  transform: translateY(24px);
}
.to-top .info-text:before {
  content: "";
  position: absolute;
  left: 1px;
  top: -10px;
  display: inline-block;
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-style: solid;
  border-color: #fff #fff transparent transparent;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  transform: rotate(-45deg);
}
@media (min-width: 1200px) {
  .to-top {
    right: 100px;
  }
}
@media (max-width: 1199px) {
  .to-top {
    right: 27px;
    bottom: 140px !important;
  }
}
@media (max-width: 992px) {
  .to-top {
    right: 25px;
    bottom: 130px !important;
  }
}
@media (max-width: 767px) {
  .to-top {
    right: 15px;
    bottom: 120px !important;
  }
}
.center {
  text-align: center;
}
.radius50 {
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
}

/* Hide Google reCAPTCHA v3 badge (Google allows this if branding remains elsewhere) */
.grecaptcha-badge {
  visibility: hidden !important;
}

/*
 * Elementor lightbox uses Swiper lazy-load: <img> starts with data-src only (no src).
 * Browsers briefly paint the broken-image icon until lazy assigns src + load completes.
 * Hide until Swiper marks the slide loaded; keep the preloader spinner visible.
 */
.elementor-lightbox .elementor-lightbox-image.swiper-lazy:not(.swiper-lazy-loaded) {
  opacity: 0 !important;
  box-shadow: none !important;
}

.elementor-lightbox .elementor-lightbox-image.swiper-lazy-loaded {
  opacity: 1;
  transition: opacity 0.2s ease;
}