/* ============================================================
   KUMAR SNACKS — Login & Registration Styles (login.css)
   ============================================================ */

:root {
  --primary:        #ff6b00;
  --primary-hover:  #e05a00;
  --primary-light:  #fff5f0;
  --primary-bg:     #fff8f5;
  --border:         #e2e8f0;
  --text:           #475569;
  --text-dark:      #0f172a;
  --text-muted:     #64748b;
  --white:          #ffffff;
  
  /* Theme-specific tokens (modified dynamically on toggle) */
  --bg-panel:       #ffffff;
  --bg-input:       #ffffff;
  --border-input:   #e2e8f0;
  --text-main:      #0f172a;
  --text-sub:       #64748b;
  
  --radius-lg:      16px;
  --radius-md:      12px;
  --radius-sm:      8px;
  --radius-pill:    100px;
  
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --transition:     0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Resets ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Outfit', sans-serif;
  background: #f8fafc;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Container Layout ---------- */
.login-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background: var(--white);
  overflow: hidden;
}

/* ============================================================
   LEFT PANEL (Brand Promotions - Desktop Only)
   ============================================================ */
.login-left {
  flex: 1.1;
  background: #0b0f19;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px;
  color: var(--white);
  overflow: hidden;
  z-index: 1;
}
.login-left__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 65%);
  z-index: -1;
}

/* Logo block */
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
}
.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.brand-logo-text {
  display: flex;
  flex-direction: column;
}
.brand-logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* Center Promo details */
.promo-content {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 440px;
}
.promo-tagline {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}
.promo-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  line-height: 1.15;
}
.promo-desc {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 30px;
}

.promo-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}
.promo-bullet-item {
  display: flex;
  align-items: start;
  gap: 16px;
}
.bullet-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bullet-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.bullet-text p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.promo-dots {
  display: flex;
  gap: 6px;
}
.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  transition: var(--transition);
}
.p-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* Image styling at the bottom */
.promo-img-box {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  opacity: 0.65;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(-10deg);
  border: 8px solid rgba(255,255,255,0.03);
}
.promo-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   RIGHT PANEL (Forms & Flows)
   ============================================================ */
.login-right {
  flex: 1;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  transition: background var(--transition);
}

/* Flow Controls */
.flow-controls {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  z-index: 10;
}
.flow-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.flow-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.flow-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile Header Logo */
.mobile-logo-block {
  display: none;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.mobile-logo-block span {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Onboarding view bullet card styles */
.onboard-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 15px 0 25px;
}
.onboard-list-item {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 16px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-md);
  background: var(--bg-input);
}
.onboard-bullet-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.onboard-list-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.onboard-list-item p {
  font-size: 0.82rem;
  color: var(--text-sub);
}

.onboard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-onboard-primary {
  padding: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-onboard-primary:hover {
  background: var(--primary-hover);
}
.btn-onboard-secondary {
  padding: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-onboard-secondary:hover {
  background: var(--primary-light);
}

.legal-footer {
  font-size: 0.75rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.4;
  margin-top: 15px;
}
.legal-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* Form card wrappers */
.form-card {
  display: none;
  animation: formFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 100%;
}
.form-card.active {
  display: block;
}

@keyframes formFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-header {
  margin-bottom: 24px;
}
.form-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}
.form-header p {
  font-size: 0.9rem;
  color: var(--text-sub);
}
.text-center {
  text-align: center;
}

/* Form Input Styling */
.form-group-login {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group-login label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
}
.input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--bg-input);
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.input-wrap input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.08);
}

.pass-toggle {
  position: absolute;
  right: 14px;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -6px;
  margin-bottom: 24px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-sub);
  cursor: pointer;
}
.checkbox-label input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}
.forgot-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-login-submit {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-login-submit:hover {
  background: var(--primary-hover);
}

/* Social Buttons */
.form-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative;
}
.form-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border-input);
  z-index: 1;
}
.form-divider span {
  background: var(--bg-panel);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  z-index: 2;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.btn-social {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-social:hover {
  background: #f8fafc;
  border-color: var(--primary);
}
.social-icon-box {
  display: flex;
  align-items: center;
}

.form-footer-toggle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-sub);
}
.form-footer-toggle a {
  color: var(--primary);
  font-weight: 700;
}

/* Onboarding emoji frame */
.ill-onboard {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 15px;
}

/* 🛵 Delivery illustration boy view styling */
.delivery-illustration {
  display: none;
  justify-content: center;
  margin-bottom: 10px;
}
.ill-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ill-emoji {
  font-size: 2.8rem;
}

/* Toast Notifications */
.login-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  background: var(--text-dark);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  z-index: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   LAYOUT SWITCH MODES (APPLIED DYNAMICALLY VIA SWITCHER)
   ============================================================ */

/* Mode: Light with Delivery Boy Illustration */
.layout-delivery-ill .delivery-illustration {
  display: flex !important;
}

/* Mode: Dark Mode Form */
.layout-dark-mode {
  --bg-panel:       #0b0f19;
  --bg-input:       #0f172a;
  --border-input:   #1e293b;
  --text-main:      #ffffff;
  --text-sub:       #94a3b8;
  background: #0b0f19 !important;
}
.layout-dark-mode .flow-controls {
  background: #1e293b;
}
.layout-dark-mode .flow-btn.active {
  background: #0f172a;
}
.layout-dark-mode .btn-social:hover {
  background: #1e293b;
}

/* ============================================================
   RESPONSIVENESS (MOBILE/TABLET DEVIATIONS)
   ============================================================ */

@media (max-width: 991px) {
  .login-left {
    display: none !important;
  }
  .login-right {
    padding: 30px 20px;
    background: var(--bg-panel);
    min-height: 100vh;
  }
  .mobile-logo-block {
    display: flex !important;
  }
  .flow-controls {
    top: 20px;
    right: 20px;
  }
}
