/* ==========================================================================
   TAOYAME FLORAL DESIGN SYSTEM — REFINED FULL-PAGE PORTAL
   Theme: Luminous Velvet Mocha, Plum-Noir & Rose-Gold Champagne
   Exact 50/50 Symmetrical Split, Perfectly Centered on Both Halves
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Outfit:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #080D17;
  --bg-velvet: #0D1422;
  --bg-app: #080D17 !important;
  --bg-sidebar: #0D1422 !important;
  --bg-card: rgba(17, 25, 40, 0.88) !important;
  --bg-card-hover: rgba(23, 34, 54, 0.94) !important;
  --bg-input: #0D1422 !important;
  
  --border-light: rgba(245, 158, 11, 0.16) !important;
  --border-card: rgba(245, 158, 11, 0.28) !important;
  --border-input: rgba(245, 158, 11, 0.28) !important;
  
  --blue-primary: #F59E0B !important;
  --blue-hover: #FBBF24 !important;
  --blue-active: #D97706 !important;
  --blue-subtle: rgba(245, 158, 11, 0.14) !important;
  --blue-border: rgba(245, 158, 11, 0.35) !important;
  --blue-focus-ring: rgba(245, 158, 11, 0.3) !important;
  
  --rose-gold: #F59E0B;
  --rose-gold-light: #FDE68A;
  --champagne: #FCD34D;
  --bronze-rich: #D97706;
  --bronze-deep: #B45309;
  
  --font-serif: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Body & HTML Reset */
html, body {
  background: radial-gradient(ellipse at 50% 15%, #162238 0%, #0D1422 45%, #080D17 100%) !important;
  background-attachment: fixed !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* ==========================================================================
   GLOBAL FLORAL AMBIENT BACKGROUND
   ========================================================================== */
.ambient-bg,
#ambient-bg,
.ambient-background {
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.ambient-watermark {
  position: absolute !important;
  top: 8% !important;
  left: 50% !important;
  transform: translateX(-50%) rotate(-6deg) !important;
  width: 680px !important;
  height: 680px !important;
  pointer-events: none !important;
  opacity: 0.075 !important;
  filter: drop-shadow(0 0 60px rgba(251, 191, 36, 0.35)) !important;
  will-change: transform !important;
  z-index: 0 !important;
}

.watermark-flower {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.ambient-shape {
  position: absolute !important;
  will-change: transform !important;
}

.shape-orb-1, .aurora-orb.orb-1 {
  top: -5% !important;
  left: 25% !important;
  width: 600px !important;
  height: 600px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%) !important;
  filter: blur(80px) !important;
  animation: driftOne 22s ease-in-out infinite alternate !important;
}

.shape-orb-2, .aurora-orb.orb-2 {
  top: 35% !important;
  right: -5% !important;
  width: 520px !important;
  height: 520px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(183, 125, 88, 0.06) 45%, transparent 70%) !important;
  filter: blur(85px) !important;
  animation: driftTwo 26s ease-in-out infinite alternate !important;
}

.shape-orb-3, .aurora-orb.orb-3 {
  bottom: 0% !important;
  left: -5% !important;
  width: 480px !important;
  height: 480px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(183, 125, 88, 0.14) 0%, transparent 68%) !important;
  filter: blur(80px) !important;
  animation: driftThree 28s ease-in-out infinite alternate !important;
}

.aurora-orb.orb-4, .aurora-orb.orb-5, .aurora-beam {
  display: none !important;
}

@keyframes driftOne {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.08); }
  100% { transform: translate(-30px, 20px) scale(0.96); }
}

@keyframes driftTwo {
  0% { transform: translate(0, 0) scale(0.96); }
  50% { transform: translate(-50px, -40px) scale(1.06); }
  100% { transform: translate(30px, -20px) scale(1); }
}

@keyframes driftThree {
  0% { transform: translate(0, 0) scale(1.04); }
  50% { transform: translate(30px, -40px) scale(0.96); }
  100% { transform: translate(-30px, 30px) scale(1.05); }
}

.ambient-spotlight {
  position: absolute !important;
  width: 650px !important;
  height: 650px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.07) 0%, rgba(245, 158, 11, 0.02) 40%, transparent 70%) !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  mix-blend-mode: screen !important;
}

.petals-container {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.petal-particle {
  position: absolute !important;
  border-radius: 60% 0 60% 0 !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.45) 0%, rgba(245, 158, 11, 0.2) 100%) !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3) !important;
  pointer-events: none !important;
  will-change: transform, opacity !important;
  animation: fallPetal linear infinite !important;
}

@keyframes fallPetal {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% { opacity: 0.6; }
  85% { opacity: 0.6; }
  100% {
    transform: translateY(105vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

.btn-arrow-icon,
.btn-arrow-wrap {
  display: none !important;
}

/* ==========================================================================
   AUTHENTICATION FULL-PAGE PORTAL (EXACT 50% / 50% SYMMETRICAL SPLIT)
   ========================================================================== */
#auth-overlay,
.auth-fullpage-portal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: row !important;
  background: radial-gradient(ellipse at 50% 15%, #162238 0%, #0D1422 45%, #080D17 100%) !important;
  overflow: hidden !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  margin: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#auth-overlay.hidden {
  display: none !important;
}

/* --- LEFT SIDE: HERO BRAND PANE (EXACT 50% WIDTH, FULLY CENTERED) --- */
.auth-hero-pane {
  flex: 1 1 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 50% !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 40px !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(245, 158, 11, 0.16) !important;
  background: radial-gradient(circle at 40% 45%, rgba(42, 28, 36, 0.5) 0%, rgba(13, 10, 12, 0.85) 100%) !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
}

.hero-pane-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 580px;
  height: 580px;
  pointer-events: none;
  opacity: 0.08;
  filter: drop-shadow(0 0 50px rgba(251, 191, 36, 0.35));
  z-index: 0;
}

.hero-pane-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.hero-pane-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 26px;
  transition: transform 0.25s ease;
}

.hero-pane-brand:hover {
  transform: translateY(-2px);
}

.brand-logo-glow-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hero-brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hero-brand-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #FFFFFF 30%, #FDE68A 70%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-pane-message {
  margin-bottom: 24px;
}

.hero-pane-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-pane-sub {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-pane-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-feature-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.16);
  transition: all 0.25s ease;
}

.hero-feature-pill:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  transform: translateX(3px);
}

.feature-icon {
  font-size: 18px;
  line-height: 1;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-size: 0.88rem;
  color: #FFFFFF;
  font-weight: 600;
}

.feature-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.hero-pane-quote {
  border-left: 2px solid rgba(245, 158, 11, 0.4);
  padding-left: 14px;
  font-style: italic;
  color: var(--rose-gold-light);
  opacity: 0.85;
  font-size: 0.86rem;
}

/* --- RIGHT SIDE: AUTH FORM PANE (EXACT 50% WIDTH, FULLY CENTERED) --- */
#auth-card,
.auth-form-pane {
  flex: 1 1 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 50% !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 40px !important;
  background: rgba(18, 13, 17, 0.84) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7) !important;
  border: none !important;
  border-left: 1px solid rgba(245, 158, 11, 0.16) !important;
  border-radius: 0 !important;
  position: relative !important;
  z-index: 10 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Form Wrapper centered inside the right 50% column */
.auth-form-wrapper {
  width: 100% !important;
  max-width: 420px !important;
  margin: auto !important;
  padding: 8px 0 !important;
  box-sizing: border-box !important;
}

.mobile-auth-brand {
  display: none;
}

.auth-header-desktop {
  text-align: center !important;
  margin-bottom: 18px !important;
}

.auth-title-large {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center !important;
  background: linear-gradient(135deg, #FFFFFF 30%, #FDE68A 70%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.auth-subtitle-refined {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center !important;
}

/* Tabs */
.auth-tab-group {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(13, 10, 12, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 10px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #BFAEA6;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(183, 125, 88, 0.18) 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

/* 2-Column Responsive Form Row */


.auth-field-group {
  margin-bottom: 12px;
}



.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap input {
  width: 100% !important;
  height: 40px !important;
  padding: 0 13px !important;
  font-size: 0.88rem !important;
  background-color: rgba(26, 18, 23, 0.85) !important;
  border: 1px solid rgba(245, 158, 11, 0.24) !important;
  border-radius: 9px !important;
  color: #FFFFFF !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-family: var(--font-sans) !important;
  box-sizing: border-box !important;
}

.auth-input-wrap input:focus {
  outline: none !important;
  border-color: #F59E0B !important;
  background-color: rgba(32, 22, 29, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), 0 0 16px rgba(245, 158, 11, 0.18) !important;
}

.auth-input-wrap.email-suffix-wrap input {
  padding-right: 120px !important;
}



.auth-input-wrap.password-wrap input {
  padding-right: 40px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #A39188;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: #FFFFFF;
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.forgot-pass-link {
  font-size: 0.82rem;
  color: var(--rose-gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-pass-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Submit Buttons */
.auth-submit-btn,
button.auth-submit-btn {
  width: 100% !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: linear-gradient(135deg, #B56F4A 0%, #F59E0B 50%, #FCD34D 100%) !important;
  color: #140804 !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 4px 16px rgba(181, 111, 74, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  margin-top: 4px !important;
}

.auth-submit-btn:hover,
button.auth-submit-btn:hover {
  background: linear-gradient(135deg, #C57D58 0%, #FBBF24 50%, #F8DEC9 100%) !important;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-1px) !important;
}

.auth-back-btn {
  width: 100% !important;
  height: 38px !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-secondary) !important;
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.auth-back-btn:hover {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #FFFFFF !important;
}



/* Legal Footer */
.auth-legal-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #8C7870;
}

.auth-legal-footer a {
  color: #A39188;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-legal-footer a:hover {
  color: #FFFFFF;
}

.auth-legal-sep {
  color: rgba(245, 158, 11, 0.3);
}

/* 2FA UI */
.auth-2fa-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-gold-light);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
  margin-bottom: 10px;
}

.auth-2fa-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.auth-2fa-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.input-2fa-code {
  text-align: center !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  font-family: monospace !important;
}

/* Alerts */
.auth-alert-box {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.auth-alert-box.alert-error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.auth-alert-box.alert-success {
  background-color: rgba(59, 165, 93, 0.12);
  border: 1px solid rgba(59, 165, 93, 0.35);
  color: #86EFAC;
}

/* High z-index for floating popups and modals over full-page auth */
#legal-modal,
#forgot-password-modal,
.compose-modal-backdrop:not(#auth-overlay) {
  z-index: 2500 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 960px) {
  #auth-overlay,
  .auth-fullpage-portal {
    flex-direction: column !important;
    overflow-y: auto !important;
    height: 100vh !important;
  }

  .auth-hero-pane {
    display: none !important;
  }

  #auth-card,
  .auth-form-pane {
    flex: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 28px 20px !important;
    background: transparent !important;
    box-shadow: none !important;
    border-left: none !important;
  }

  

  .mobile-auth-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-decoration: none !important;
  }

  .mobile-logo-img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    margin-bottom: 8px !important;
    filter: drop-shadow(0 4px 20px rgba(245, 158, 11, 0.45)) !important;
  }

  .mobile-brand-title {
    font-family: var(--font-serif) !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    background: linear-gradient(135deg, #FFFFFF 30%, #FDE68A 70%, #F59E0B 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  .mobile-brand-sub {
    font-size: 12.5px !important;
    color: var(--rose-gold-light) !important;
    opacity: 0.85 !important;
  }

  .auth-header-desktop {
    display: none !important;
  }
}

/* Fixed equal height labels to guarantee perfect horizontal input alignment */
.auth-field-label {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 5px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 15px !important;
  height: 15px !important;
}

.auth-grid-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  align-items: flex-start !important;
}

.auth-grid-row .auth-field-group {
  margin-bottom: 0 !important;
}


/* Suffix @taoyame.com - Pure transparent text, NO background or box */
.domain-fixed-badge {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--rose-gold-light) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  letter-spacing: 0.02em !important;
  pointer-events: none !important;
  opacity: 0.85 !important;
}

.auth-input-wrap.email-suffix-wrap input {
  padding-right: 110px !important;
}


/* ==========================================================================
   UNIFIED LUXURY CUSTOM CHECKBOX (LOGIN & REGISTRATION)
   ========================================================================== */
.custom-checkbox-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  cursor: pointer !important;
  user-select: none !important;
}

.custom-checkbox-wrap input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

.custom-checkbox {
  width: 17px !important;
  height: 17px !important;
  background-color: rgba(26, 18, 23, 0.85) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  border-radius: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
}

.custom-checkbox svg {
  display: none !important;
  stroke: #140804 !important;
}

.custom-checkbox-wrap input[type="checkbox"]:checked + .custom-checkbox {
  background: linear-gradient(135deg, #B56F4A 0%, #F59E0B 50%, #FCD34D 100%) !important;
  border-color: rgba(251, 191, 36, 0.85) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45) !important;
}

.custom-checkbox-wrap input[type="checkbox"]:checked + .custom-checkbox svg {
  display: block !important;
}

.custom-checkbox-wrap:hover .custom-checkbox {
  border-color: rgba(251, 191, 36, 0.6) !important;
}

.checkbox-label {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  transition: color 0.15s ease !important;
}

.checkbox-label.terms-text {
  font-size: 11.5px !important;
  color: #A1A1AA !important;
  line-height: 1.45 !important;
}

.checkbox-label.terms-text a {
  color: #FFFFFF !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}


/* ==========================================================================
   TAOYAME SPLASH SCREEN — EXACT TAOYAME.COM BACKGROUND (NO PHRASE)
   Theme: radial-gradient(ellipse at 50% 15%, #162238 0%, #0D1422 45%, #080D17 100%)
   ========================================================================== */
.app-splash-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: radial-gradient(ellipse at 50% 15%, #162238 0%, #0D1422 45%, #080D17 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  user-select: none !important;
  cursor: default !important;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.app-splash-screen.splash-fade-out {
  opacity: 0 !important;
  transform: scale(1.04) !important;
  filter: blur(10px) !important;
  pointer-events: none !important;
}

/* Background Watermark (same as taoyame.com) */
.splash-watermark {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 620px;
  height: 620px;
  pointer-events: none;
  opacity: 0.07;
  filter: drop-shadow(0 0 50px rgba(251, 191, 36, 0.3));
  will-change: transform;
}
.splash-watermark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ambient Radial & Orbs matching taoyame.com */
.splash-ambient-radial {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.08) 42%, transparent 70%);
  filter: blur(75px);
  pointer-events: none;
  animation: splashGlowBreathe 3.5s infinite alternate ease-in-out;
}

.splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.65;
}
.splash-orb-1 {
  top: -5%;
  left: 25%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.07) 40%, transparent 70%);
  animation: splashOrbFloat1 5s infinite alternate ease-in-out;
}
.splash-orb-2 {
  top: 38%;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(183, 125, 88, 0.05) 45%, transparent 70%);
  animation: splashOrbFloat2 6s infinite alternate ease-in-out;
}

/* Content Container */
.splash-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

/* Central Emblem & Halo */
.splash-emblem-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.splash-halo {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.2) 45%, transparent 70%);
  filter: blur(20px);
  animation: splashHaloPulse 2.8s infinite alternate ease-in-out;
}
.splash-aura-ring {
  position: absolute;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2), inset 0 0 18px rgba(251, 191, 36, 0.12);
  animation: splashRingRotate 12s linear infinite;
}
.splash-logo-container {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-logo-img {
  width: 105px !important;
  height: 105px !important;
  max-width: 105px !important;
  max-height: 105px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 28px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 50px rgba(245, 158, 11, 0.45)) !important;
  animation: splashLogoEnter 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             splashLogoHover 3s ease-in-out 0.85s infinite alternate !important;
}

/* Typography (NO phrase, just pure TAOYAME) */
.splash-text-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash-brand-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  margin: 0 !important;
  margin-right: -0.28em !important;
  background: linear-gradient(135deg, #FFFFFF 15%, #FDE68A 65%, #F59E0B 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 20px rgba(245, 158, 11, 0.45)) !important;
  animation: splashTitleEnter 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards !important;
}

/* Subtle Champagne Shimmer Loading Bar */
.splash-loader-bar {
  position: relative;
  width: 140px;
  height: 2px;
  background: rgba(245, 158, 11, 0.16);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.12);
  animation: splashTitleEnter 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}
.splash-loader-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, transparent, #F59E0B, #FDE68A, #F59E0B, transparent);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.85);
  animation: splashLoaderGlide 1.4s infinite ease-in-out;
}

/* Keyframes */
@keyframes splashLoaderGlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}
@keyframes splashRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes splashHaloPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}
@keyframes splashOrbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, -18px) scale(1.08); }
}
@keyframes splashOrbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25px, 18px) scale(1.1); }
}
@keyframes splashLogoEnter {
  0% {
    opacity: 0;
    transform: scale(0.65) translateY(12px);
    filter: blur(12px) drop-shadow(0 0 50px rgba(251, 191, 36, 0.9));
  }
  70% {
    transform: scale(1.05) translateY(-3px);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes splashLogoHover {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
@keyframes splashTitleEnter {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes splashGlowBreathe {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.75;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.14);
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .splash-watermark {
    width: 380px !important;
    height: 380px !important;
  }
  .splash-ambient-radial {
    width: 420px !important;
    height: 420px !important;
  }
  .splash-emblem-wrap {
    width: 130px !important;
    height: 130px !important;
  }
  .splash-halo {
    width: 120px !important;
    height: 120px !important;
  }
  .splash-aura-ring {
    width: 114px !important;
    height: 114px !important;
  }
  .splash-logo-img {
    width: 90px !important;
    height: 90px !important;
  }
  .splash-brand-title {
    font-size: 28px !important;
    letter-spacing: 0.22em !important;
    margin-right: -0.22em !important;
  }
  .splash-loader-bar {
    width: 120px !important;
  }
}

/* ==========================================================================
   TAOYAME FLORAL MAIL INTERFACE & UNREAD EMAILS
   Theme: Luminous Velvet Mocha & Rose-Gold Champagne
   ========================================================================== */

/* Unread Mail Items */
.mail-item.unread {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(38, 26, 34, 0.78) 100%) !important;
  border-left: 3px solid #F59E0B !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: inset 1px 0 10px rgba(245, 158, 11, 0.12) !important;
}

.mail-item.unread:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(52, 36, 48, 0.9) 100%) !important;
  border-left-color: #FDE68A !important;
}

.mail-item.unread.active,
.mail-item.unread.selected {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.26) 0%, rgba(58, 38, 52, 0.95) 100%) !important;
  border-left: 3px solid #FDE68A !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.mail-item.unread .mail-item-sender {
  color: #FFF0E4 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

.mail-item.unread .mail-item-subject {
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.mail-item.unread .mail-item-date {
  color: #FDE68A !important;
  font-weight: 600 !important;
}

.mail-item.unread .mail-item-snippet {
  color: rgba(251, 191, 36, 0.72) !important;
}

.mail-item.unread .mail-item-avatar-mini {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #FFF0E4 !important;
}

/* Glowing Unread Dot */
.unread-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.95), 0 0 18px rgba(251, 191, 36, 0.5) !important;
  flex-shrink: 0 !important;
}

/* Read Mail Items */
.mail-item:not(.unread) {
  background: transparent !important;
  border-left: 3px solid transparent !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.08) !important;
}

.mail-item:not(.unread):hover {
  background: rgba(245, 158, 11, 0.07) !important;
}

.mail-item:not(.unread).active,
.mail-item:not(.unread).selected {
  background: rgba(245, 158, 11, 0.14) !important;
  border-left: 3px solid #F59E0B !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.mail-item:not(.unread) .mail-item-sender {
  color: rgba(251, 191, 36, 0.78) !important;
  font-weight: 500 !important;
}

.mail-item:not(.unread) .mail-item-subject {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400 !important;
}

.mail-item:not(.unread) .mail-item-snippet {
  color: rgba(251, 191, 36, 0.42) !important;
}

.mail-item:not(.unread) .mail-item-date {
  color: rgba(245, 158, 11, 0.5) !important;
}

/* Badges & Unread Count Pills */
.mail-count-badge.has-unread {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(183, 125, 88, 0.42) 100%) !important;
  color: #FFF0E4 !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35) !important;
  font-weight: 700 !important;
}

.sidebar:not(.expanded) .nav-item .mail-count-badge.has-unread {
  background: #F59E0B !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.9), 0 0 16px rgba(251, 191, 36, 0.5) !important;
}

/* Filter Pills (Tous, Non lus, Favoris, etc.) */
.filter-pill {
  background: rgba(245, 158, 11, 0.06) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  color: rgba(251, 191, 36, 0.78) !important;
}

.filter-pill:hover {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #FFF0E4 !important;
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(183, 125, 88, 0.4) 100%) !important;
  border-color: #F59E0B !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
}

/* Thread toggle pill */
.thread-toggle-pill {
  background: rgba(245, 158, 11, 0.06) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  color: rgba(251, 191, 36, 0.78) !important;
}
.thread-toggle-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(183, 125, 88, 0.4) 100%) !important;
  border-color: #F59E0B !important;
  color: #FFFFFF !important;
}

/* Search Box in Mail List */
.mail-search-box {
  background: rgba(245, 158, 11, 0.05) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
}
.mail-search-box input {
  color: #FFF0E4 !important;
}
.mail-search-box input::placeholder {
  color: rgba(251, 191, 36, 0.45) !important;
}
.mail-search-box:focus-within {
  border-color: #F59E0B !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25) !important;
}

/* Mail List Panels & Toolbars */
.mail-list-pane {
  background-color: rgba(16, 11, 15, 0.72) !important;
  border-right: 1px solid rgba(245, 158, 11, 0.14) !important;
}
.mail-list-toolbar {
  background-color: rgba(22, 15, 20, 0.65) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14) !important;
}
.mail-list-title #current-folder-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  letter-spacing: 0.04em !important;
  color: #FFF0E4 !important;
}

/* Mail Reader Pane */
.mail-reader-pane {
  background-color: rgba(13, 9, 12, 0.65) !important;
}
.mail-reader-header {
  background: rgba(20, 14, 19, 0.5) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14) !important;
}
.btn-mail-action {
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  color: #FFF0E4 !important;
}
.btn-mail-action:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: #F59E0B !important;
}
.btn-mail-reply {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #110B10 !important;
  font-weight: 700 !important;
  border: 1px solid #F59E0B !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important;
}
.btn-mail-reply:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #C48762 100%) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5) !important;
}


/* ==========================================================================
   TAOYAME FLORAL OTP SECURITY BANNER (LUXURY MOCHA & ROSE-GOLD)
   ========================================================================== */
.mail-otp-banner-wrap {
  margin: 14px 24px 16px 24px !important;
}

.mail-otp-banner {
  background: linear-gradient(135deg, rgba(38, 26, 35, 0.94) 0%, rgba(22, 15, 21, 0.98) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(251, 191, 36, 0.15) !important;
  backdrop-filter: blur(16px) !important;
}

.mail-otp-icon-box {
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(138, 77, 86, 0.25) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  color: #FDE68A !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.18) !important;
}

.mail-otp-icon-box svg {
  stroke: #FDE68A !important;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4)) !important;
}

.mail-otp-title {
  font-family: 'Outfit', sans-serif !important;
  color: #FFF2EB !important;
}

.mail-otp-type-badge {
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #FDE68A !important;
}

.mail-otp-subtitle {
  color: rgba(251, 191, 36, 0.72) !important;
}

.otp-expires-badge {
  color: #E6BC9E !important;
  background: rgba(24, 16, 22, 0.85) !important;
  border: 1px solid rgba(245, 158, 11, 0.24) !important;
}

.otp-expires-badge.expired {
  color: #F87171 !important;
  background: rgba(45, 16, 20, 0.85) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.mail-otp-code-box {
  background: rgba(14, 9, 13, 0.9) !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 158, 11, 0.1) !important;
}

.mail-otp-code-box:hover {
  border-color: #F59E0B !important;
  background: rgba(26, 17, 23, 0.95) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.28), inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.mail-otp-code-val {
  color: #FFF2EB !important;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.45) !important;
}

.btn-otp-copy {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #120B10 !important;
  border: 1px solid rgba(251, 191, 36, 0.6) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
}

.btn-otp-copy span {
  color: #120B10 !important;
}

.btn-otp-copy svg {
  stroke: #120B10 !important;
}

.btn-otp-copy:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #C48762 100%) !important;
  border-color: rgba(251, 191, 36, 0.8) !important;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5) !important;
}

.btn-otp-copy.copied {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border-color: #34D399 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45) !important;
}

.btn-otp-copy.copied span {
  color: #FFFFFF !important;
}

.btn-otp-copy.copied svg {
  stroke: #FFFFFF !important;
}

.mail-otp-list-pill {
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  color: #FDE68A !important;
}

.mail-otp-list-pill:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #F59E0B !important;
  color: #FFF2EB !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
}

.mail-otp-list-pill.copied {
  background: #10B981 !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
}
