/* ==========================================================================
   CREATIVE HERBAL SIGN-IN & REGISTRATION PAGE STYLESHEET
   Umanarayani Ayurveda
   ========================================================================== */

.signin-page-body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #F5FAF6 0%, #E3EFE6 50%, #D4E8D9 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Floating botanical leaves animation background */
.leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-leaf {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.25;
  filter: drop-shadow(0 4px 6px rgba(45, 106, 79, 0.2));
  animation: floatDown 14s linear infinite;
}

@keyframes floatDown {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.35;
  }
  85% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(50px);
    opacity: 0;
  }
}

/* Top Back-to-Store Bar */
.signin-top-bar {
  padding: 24px 32px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-forest);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  transition: var(--pop-transition);
}

.back-link:hover {
  background: #FFF;
  color: var(--green-primary);
  transform: translateX(-4px);
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.15);
}

/* Sign-in Main Centered Card */
.signin-card-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 60px;
  position: relative;
  z-index: 10;
}

.herbal-auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-light);
  box-shadow: 0 25px 60px -10px rgba(27, 67, 50, 0.18), 0 0 0 1px rgba(82, 183, 136, 0.2);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  transition: var(--pop-transition);
  animation: cardFadeUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card Header */
.auth-card-header {
  text-align: center;
  padding: 36px 32px 20px;
  background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F0F8F2 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.auth-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  margin: 0 auto 12px;
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.3);
  transition: transform 0.4s ease;
}

.auth-logo-img:hover {
  transform: rotate(360deg);
}

.auth-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--green-primary);
  margin-bottom: 4px;
}

.auth-card-tagline {
  font-size: 0.8rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Tab Switcher */
.auth-tabs-toggle {
  display: flex;
  background: #E8F3EB;
  border-radius: var(--radius-full);
  padding: 4px;
  margin: 20px 32px 0;
  border: 1px solid var(--border-light);
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.auth-tab-btn.active {
  background: #FFF;
  color: var(--green-primary);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.1);
}

/* Forms */
.auth-form-wrap {
  padding: 28px 32px 36px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-forest);
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--green-sage);
  font-size: 1rem;
}

.herbal-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: #F8FBF8;
  border: 1.5px solid rgba(82, 183, 136, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.3s ease;
}

.herbal-input:focus {
  background: #FFF;
  border-color: var(--green-forest);
  box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.2);
}

/* Dosha Profile Selector (Interactive Ayurvedic Quiz / Picker) */
.dosha-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.dosha-choice-pill {
  border: 1.5px solid var(--border-light);
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: var(--pop-transition);
}

.dosha-choice-pill:hover {
  border-color: var(--green-mint);
  transform: translateY(-2px);
}

.dosha-choice-pill.active {
  border-color: var(--green-forest);
  background: #EAF5ED;
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.15);
}

.dosha-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 2px;
}

.dosha-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-primary);
  display: block;
}

.dosha-trait {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Submit Button */
.btn-herbal-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--green-forest), var(--green-primary));
  color: #FFF;
  padding: 14px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.3);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: var(--pop-transition);
}

.btn-herbal-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(45, 106, 79, 0.45);
  background: linear-gradient(135deg, var(--green-sage), var(--green-forest));
}

/* Quick Demo Sign-in Option */
.demo-login-box {
  margin-top: 22px;
  padding: 14px;
  background: #F3F8F4;
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  text-align: center;
}

.demo-login-btn {
  background: #FFF;
  color: var(--green-primary);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: var(--pop-transition);
}

.demo-login-btn:hover {
  background: var(--gold-primary);
  color: #FFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   POST-LOGIN WELCOME & PROMINENT ACTIVE USERS DISPLAY
   Requirement: "after logging in also show how many users are using the website"
   ========================================================================== */
.login-success-card {
  display: none;
  padding: 40px 32px;
  text-align: center;
  animation: cardFadeUp 0.5s ease;
}

.success-ayur-avatar {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: bounceAvatar 1.5s infinite;
}

@keyframes bounceAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.success-welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--green-primary);
  margin-bottom: 6px;
}

.success-user-dosha {
  display: inline-block;
  background: var(--bg-herbal-soft);
  color: var(--green-forest);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(82, 183, 136, 0.3);
}

/* PROMINENT LIVE ACTIVE USERS BANNER */
.active-users-featured-banner {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(27, 67, 50, 0.25);
  border: 2px solid var(--gold-primary);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.banner-pulse-halo {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.4), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.community-stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 16px 0 12px;
}

.community-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.stat-card-badge.live-badge {
  background: rgba(46, 204, 113, 0.2);
  color: #2ECC71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.stat-card-badge.total-badge {
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(197, 160, 89, 0.4);
}

.active-count-huge {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.1;
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.active-count-huge.total-count {
  color: #FFF;
  background: linear-gradient(135deg, #FFFFFF, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-caption {
  font-size: 0.76rem;
  color: #A3E4D7;
  font-weight: 500;
}

.community-stat-divider {
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, 0.22);
}

.active-count-huge .live-dot {
  width: 12px;
  height: 12px;
  background: #2ECC71;
  border-radius: 50%;
  box-shadow: 0 0 12px #2ECC71;
  flex-shrink: 0;
}

.active-banner-label {
  font-size: 0.95rem;
  color: #D8F3DC;
  font-weight: 600;
}

.active-banner-sub {
  font-size: 0.78rem;
  color: #A3E4D7;
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .community-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .community-stat-divider {
    display: none;
  }
}

.btn-continue-shopping {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: #FFF;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.35);
  transition: var(--pop-transition);
}

.btn-continue-shopping:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(197, 160, 89, 0.5);
}
