/* ==========================================================================
   TOTTAA - Auth Pages (Login / Register / Forgot / Reset Password)
   Light Bokeh Background + Frosted Glass Card
   ========================================================================== */

/* Auth Page Full-Screen Section */
.auth-section-luxury {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;

  /* Light background — minimal overlay to keep it bright */
  background-color: #fff5f0 !important;
  background-image:
    linear-gradient(135deg,
      rgba(255,248,240,0.25) 0%,
      rgba(255,237,220,0.20) 50%,
      rgba(255,245,245,0.25) 100%),
    var(--auth-bg-url) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Override site light/dark theme — always use this bg */
[data-theme="light"] .auth-section-luxury,
[data-theme="dark"] .auth-section-luxury {
  background-color: #fff5f0 !important;
}

/* Subtle warm orb - top right (brand orange) */
.auth-section-luxury::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, rgba(234,88,12,0.05) 55%, transparent 70%);
  animation: authOrb1 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Subtle warm orb - bottom left */
.auth-section-luxury::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,146,60,0.10) 0%, rgba(249,115,22,0.04) 55%, transparent 70%);
  animation: authOrb2 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes authOrb1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(-25px,18px) scale(1.07); }
  66%       { transform: translate(18px,-12px) scale(0.96); }
}
@keyframes authOrb2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  40%       { transform: translate(22px,-18px) scale(1.08); }
  70%       { transform: translate(-12px,14px) scale(0.95); }
}

.auth-section-luxury .container {
  position: relative;
  z-index: 1;
}

/* Sparkle Dots */
.auth-sparkle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: sparkleFloat 6s ease-in-out infinite;
}
.auth-sparkle-1 { width:6px; height:6px; top:15%; left:7%; background:rgba(249,115,22,0.5); animation-delay:0s; }
.auth-sparkle-2 { width:4px; height:4px; top:72%; right:9%; background:rgba(234,88,12,0.4); animation-delay:2s; }
.auth-sparkle-3 { width:5px; height:5px; top:38%; left:4%; background:rgba(251,146,60,0.45); animation-delay:4s; }
.auth-sparkle-4 { width:3px; height:3px; top:22%; right:7%; background:rgba(234,88,12,0.35); animation-delay:1s; }

@keyframes sparkleFloat {
  0%,100% { transform:translateY(0) scale(1); opacity:0.6; }
  50%      { transform:translateY(-20px) scale(1.4); opacity:1; }
}

/* === Frosted Glass Card - WHITE / light on light bg === */
.auth-card-luxury {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(234,88,12,0.08),
    0 20px 60px -10px rgba(100,50,20,0.18),
    0 4px 16px -2px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.95);
  overflow: hidden;
  animation: authCardEntry 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes authCardEntry {
  from { opacity:0; transform:translateY(30px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* === Header === */
.auth-card-header {
  padding: 36px 36px 0;
}

.auth-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(234,88,12,0.1);
  border: 1px solid rgba(234,88,12,0.25);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ea580c;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.auth-pill-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ea580c;
  animation: badgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.75); }
}

/* Dark text on white frosted card */
.auth-card-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.auth-card-subtitle {
  font-size: 13.5px;
  color: #475569 !important;
  margin: 0 0 26px;
  line-height: 1.6;
}

/* === Body === */
.auth-card-body {
  padding: 0 36px 36px;
}

/* === Fields === */
.auth-field-group {
  margin-bottom: 18px;
}

.auth-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #374151 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
  z-index: 1;
  transition: stroke 0.2s ease;
}

/* Light inputs on white card */
.auth-input {
  width: 100%;
  background: rgba(248,250,252,0.9) !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px;
  padding: 12px 42px 12px 42px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.22s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.auth-input::placeholder { color:#94a3b8 !important; font-weight:400; }

.auth-input:focus {
  background: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15) !important;
}

.auth-input-wrapper:focus-within .auth-field-icon {
  stroke: #f97316;
}

.auth-input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}

/* Select */
.auth-select {
  width: 100%;
  background-color: rgba(248,250,252,0.9) !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px;
  padding: 12px 38px 12px 42px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.22s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px !important;
  cursor: pointer;
  box-sizing: border-box;
}

.auth-select option { background:#ffffff; color:#0f172a; }

.auth-select:focus {
  background-color: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15) !important;
}

/* Password Toggle */
.auth-toggle-pwd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  z-index: 2;
}

.auth-toggle-pwd:hover { color: #f97316; }
.auth-toggle-pwd svg { stroke: currentColor; }

/* Error */
.auth-error-feedback {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 5px;
  padding-left: 2px;
}

/* Subtle link (Forgot password) */
.auth-link-subtle {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-link-subtle:hover { color: #ea580c; }

/* Submit Button */
.auth-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border: none !important;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 13px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 6px 22px rgba(234,88,12,0.4) !important;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.auth-btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.auth-btn-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(234,88,12,0.55) !important;
  color: #ffffff !important;
}

.auth-btn-submit:hover::before { opacity: 1; }
.auth-btn-submit:active { transform: translateY(0) !important; }

.auth-btn-submit svg { flex-shrink:0; transition:transform 0.2s ease; }
.auth-btn-submit:hover svg { transform: translateX(4px); }

/* Card Footer */
.auth-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 13.5px;
}

.auth-card-footer span { color:#64748b; margin-right:5px; }

.auth-link-highlight {
  color: #ea580c !important;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-link-highlight:hover {
  color: #c2410c !important;
  text-decoration: underline;
}

/* Consent Box */
.auth-consent-box {
  background: rgba(249,115,22,0.05);
  border: 1px solid rgba(234,88,12,0.15);
  border-radius: 12px;
  padding: 14px 16px;
}

.auth-consent-text {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.auth-consent-text a {
  color: #ea580c;
  font-weight: 600;
  text-decoration: none;
}
.auth-consent-text a:hover {
  text-decoration: underline;
  color: #c2410c;
}

/* CAPTCHA */
.auth-captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-captcha-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auth-captcha-img {
  width: 130px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

.auth-captcha-refresh {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #94a3b8;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.auth-captcha-refresh:hover {
  border-color: #f97316;
  color: #f97316;
  background: rgba(249,115,22,0.08);
  transform: rotate(90deg);
}

/* Alert Success */
.auth-alert-success {
  background: rgba(21,128,61,0.08);
  border: 1px solid rgba(21,128,61,0.25);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-section-luxury {
    padding: 70px 0 60px;
    background-attachment: scroll !important;
  }
  .auth-card-header { padding: 26px 20px 0; }
  .auth-card-body { padding: 0 20px 26px; }
  .auth-card-title { font-size: 22px; }
  .auth-captcha-container { flex-direction: column; align-items: stretch; }
  .auth-captcha-visual { width: 100%; }
  .auth-captcha-img { width: 100%; height: 48px; }
}
