/* ==========================================================================
   MINISTORE AUTHENTICATION & PROFILE STYLES
   Matches Reference Images: seller-login.html, seller-signup.html, customer auth
   ========================================================================== */

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  overflow-x: hidden;
}

/* Outer Auth Wrapper - uses overflow-x: clip and overflow-y: visible to prevent double scrollbars */
.auth-page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f7f2 0%, #f9fbf9 50%, #eef5f0 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

/* Subtle background foliage decorations */
.auth-leaf-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.auth-leaf-top-left {
  top: -40px;
  left: -40px;
  width: 220px;
}

.auth-leaf-bottom-right {
  bottom: -40px;
  right: -40px;
  width: 260px;
}

/* Auth Header */
.auth-header {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ms-text);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.auth-brand-logo .brand-icon-box {
  width: 38px;
  height: 38px;
  background: var(--ms-primary-dark);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.auth-top-link {
  font-size: 0.875rem;
  color: var(--ms-text-muted);
}

.auth-top-link a {
  color: var(--ms-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-top-link a:hover {
  text-decoration: underline;
}

/* Main Container */
.auth-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 3rem;
  position: relative;
  z-index: 2;
}

.seller-auth-grid {
  width: 100%;
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

/* Left Hero Column (Seller Branding) */
.seller-hero-col {
  display: flex;
  flex-direction: column;
  position: relative;
}

.for-sellers-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--ms-primary-light);
  color: var(--ms-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--ms-radius-pill);
  width: fit-content;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.seller-hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.seller-hero-title .text-green-accent {
  color: var(--ms-primary);
}

.seller-hero-sub {
  font-size: 1.05rem;
  color: var(--ms-text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin-bottom: 1.75rem;
}

/* 4-Item Benefits Grid/List */
.seller-benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin-bottom: 2rem;
}

.seller-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.benefit-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #EAF7EF;
  color: var(--ms-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.benefit-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1F2937;
}

/* Seller Illustration & Floating Stats */
.seller-artwork-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 440px;
  margin-top: 0.5rem;
}

.seller-hero-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(6, 78, 59, 0.12));
}

/* Floating Stats Card: Total Sales ₹24,850 */
.floating-sales-stat {
  position: absolute;
  top: 15px;
  right: -10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(8, 127, 79, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
  animation: floatCardSlow 4s ease-in-out infinite;
}

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

.stat-sales-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ms-text-muted);
}

.stat-sales-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
}

.stat-sales-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ms-primary);
}

.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 4px;
}

.mini-bar {
  width: 5px;
  background-color: var(--ms-primary-light);
  border-radius: 2px;
}

.mini-bar.active {
  background-color: var(--ms-primary);
}

/* Cursive Accent: Build Sell Grow -> */
.cursive-hero-badge {
  font-family: var(--ms-font-handwriting);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ms-primary-dark);
  line-height: 1.1;
  position: absolute;
  left: 0;
  bottom: 80px;
  transform: rotate(-8deg);
}

/* Right Form Card (Matching Reference Images 1 & 3) */
.auth-form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 16px 40px -8px rgba(6, 78, 59, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.8);
  position: relative;
  z-index: 5;
}

.auth-form-header {
  margin-bottom: 1.75rem;
}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-form-subtitle {
  font-size: 0.9rem;
  color: var(--ms-text-muted);
}

/* Form Input Groups with Icons */
.auth-input-group {
  position: relative;
  margin-bottom: 1.15rem;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--ms-transition-fast);
}

.auth-input-field {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  box-sizing: border-box;
  border: 1.5px solid var(--ms-border);
  border-radius: 12px;
  font-size: 0.925rem;
  color: var(--ms-text);
  background-color: #ffffff;
  transition: border-color var(--ms-transition-fast), box-shadow var(--ms-transition-fast);
  outline: none;
  font-family: inherit;
}

.auth-input-field:focus {
  border-color: var(--ms-primary);
  box-shadow: 0 0 0 4px rgba(8, 127, 79, 0.12);
}

.auth-input-field:focus ~ .auth-input-icon {
  color: var(--ms-primary);
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) !important;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #9CA3AF;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: color var(--ms-transition-fast);
  z-index: 5;
  user-select: none;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus,
.auth-password-toggle:active {
  color: var(--ms-text);
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}

/* Remember & Forgot Row */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 1.35rem;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ms-text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--ms-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-forgot-link {
  color: var(--ms-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

/* Primary Auth Button */
.btn-auth-primary {
  width: 100%;
  background-color: var(--ms-primary-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.975rem;
  padding: 0.825rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--ms-transition-fast);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
  background-color: #043629;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.3);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

/* OR Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #9CA3AF;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--ms-border);
}

/* Google Social Button */
.btn-auth-google {
  width: 100%;
  background-color: #ffffff;
  color: #374151;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--ms-border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all var(--ms-transition-fast);
}

.btn-auth-google:hover {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
  box-shadow: var(--ms-shadow-xs);
}

.btn-auth-google img,
.btn-auth-google svg {
  width: 18px;
  height: 18px;
}

/* Bottom Information / Security Card */
.auth-info-card {
  margin-top: 1.5rem;
  background-color: #F0FDF4;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.auth-info-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #DCFCE7;
  color: var(--ms-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.auth-info-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #14532D;
}

.auth-info-desc {
  font-size: 0.75rem;
  color: #15803D;
  line-height: 1.25;
}

/* Customer Auth Card (Centered Simpler Layout) */
.customer-auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* Profile View Styles */
.profile-shell {
  width: 100%;
  max-width: 860px;
  margin: 2rem auto 5rem;
  padding: 0 1rem;
}

.profile-header-card {
  background: #ffffff;
  border: 1px solid var(--ms-border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--ms-shadow-xs);
  margin-bottom: 1.5rem;
}

.profile-avatar-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #087F4F 0%, #064E3B 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(8, 127, 79, 0.25);
}

.profile-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.2rem;
}

.profile-meta-item {
  font-size: 0.85rem;
  color: var(--ms-text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-menu-card {
  background: #ffffff;
  border: 1px solid var(--ms-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ms-shadow-xs);
  margin-bottom: 1.5rem;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--ms-border-light);
  color: var(--ms-text);
  text-decoration: none;
  transition: background-color var(--ms-transition-fast);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background-color: #F9FAFB;
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--ms-primary-light);
  color: var(--ms-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.profile-logout-btn {
  width: 100%;
  background-color: #FEE2E2;
  color: #DC2626;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--ms-transition-fast);
}

.profile-logout-btn:hover {
  background-color: #FECACA;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (< 992px)
   Matches Bottom Left & Bottom Right of Reference Image
   ========================================================================== */
@media (max-width: 991px) {
  .auth-header {
    padding: 1rem 1.25rem;
  }

  .auth-main-container {
    padding: 0.75rem 1.25rem 2.5rem;
    align-items: flex-start;
  }

  .seller-auth-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* In mobile form view, hide the desktop left hero column or make it an onboarding banner */
  .seller-hero-col.mobile-hero-hide {
    display: none;
  }

  .seller-hero-title {
    font-size: 2rem;
  }

  .auth-form-card {
    padding: 1.75rem 1.35rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  }

  .auth-form-title {
    font-size: 1.45rem;
  }

  /* Mobile App-style back navigation */
  .auth-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
  }

  .auth-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--ms-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ms-text);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
  }

  .profile-header-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .profile-meta-item {
    justify-content: center;
  }
}
