/**
 * Ghar Aapka Marketplace
 * Authentication Styles (Pure Raw CSS)
 */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at 10% 15%, rgba(255, 94, 0, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 90% 85%, rgba(0, 55, 122, 0.08) 0%, transparent 45%),
              var(--bg-body);
  position: relative;
}

/* Auth Corner Language Switcher */
.auth-lang-picker {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.lang-switch-container {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.lang-switch-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  color: var(--brand-navy-dark);
}

.lang-switch-btn.active {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 55, 122, 0.2);
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  animation: fadeIn 0.3s ease-out;
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-orange) 50%, var(--brand-yellow) 100%);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.auth-card-wide {
  max-width: 780px;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

.brand-logo-img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 55, 122, 0.1));
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--brand-orange-light);
  color: var(--brand-orange-hover);
  border: 1px solid var(--brand-orange-border);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-navy-dark);
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

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

/* Role Selector Tabs */
.role-tabs {
  display: flex;
  background: var(--bg-surface-alt);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.role-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}

.role-tab:hover {
  color: var(--brand-navy);
}

.role-tab.active {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 55, 122, 0.25);
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-grid .full-width {
  grid-column: span 2;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy-dark);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label .required {
  color: var(--color-danger);
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.15);
}

.form-control.is-invalid {
  border-color: var(--color-danger);
  background-color: #fffbfa;
}

.toggle-pwd-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
}

.toggle-pwd-btn:hover {
  color: var(--brand-navy);
}

.input-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.invalid-feedback {
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Checkbox & Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand-orange);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: 100%;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff7300 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
}

.btn-brand:hover {
  background: linear-gradient(135deg, var(--brand-orange-hover) 0%, var(--brand-orange) 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 94, 0, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-alt);
  color: var(--brand-navy-dark);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--brand-navy-dark);
}

/* Quick Demo Login Box */
.demo-accounts-box {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-surface-alt);
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
}

.demo-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-pill {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--brand-navy-dark);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.demo-pill:hover {
  border-color: var(--brand-orange);
  background: var(--brand-orange-light);
  color: var(--brand-orange-hover);
  transform: translateY(-1px);
}

/* Alerts */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: #065f46;
}

.alert-danger {
  background-color: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: #991b1b;
}

.alert-warning {
  background-color: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: #92400e;
}

.alert-info {
  background-color: var(--color-info-bg);
  border-color: #bae6fd;
  color: #075985;
}

.auth-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Radio Cards */
.radio-card-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.radio-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.radio-card:hover {
  border-color: var(--brand-orange);
  background: var(--bg-surface-alt);
}

.radio-card.selected {
  border-color: var(--brand-orange);
  background: var(--brand-orange-light);
}

.radio-card input {
  accent-color: var(--brand-orange);
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full-width {
    grid-column: span 1;
  }
  .radio-card-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Split-Screen Modern Authentication (2-Part Layout)
   ========================================================================== */

.auth-split-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #ffffff;
  overflow-x: hidden;
  position: relative;
}

/* Left Showcase Panel (Brand & Visuals) */
.auth-split-left {
  flex: 1.15;
  position: relative;
  background: linear-gradient(145deg, #030f21 0%, #061e43 45%, #00377a 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 4rem;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

/* Ambient glow blobs */
.auth-split-left::before {
  content: '';
  position: absolute;
  top: -12%;
  left: -12%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.25) 0%, transparent 68%);
  pointer-events: none;
  filter: blur(50px);
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.auth-split-left::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 73, 152, 0.45) 0%, rgba(255, 162, 0, 0.18) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  animation: floatOrb 18s ease-in-out infinite alternate-reverse;
}

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

/* Blueprint dot-matrix texture overlay */
.auth-brand-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: 0.8;
  pointer-events: none;
}

/* Brand Left Header */
.auth-left-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f8fafc;
  text-transform: uppercase;
}

.auth-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Brand Left Center Content */
.auth-left-center {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 2.2rem 0;
}

.auth-logo-showcase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 14px 22px;
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.35);
  margin-bottom: 1.75rem;
  transition: transform 0.3s ease;
}

.auth-logo-showcase:hover {
  transform: translateY(-3px) scale(1.02);
}

.auth-logo-showcase img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.auth-hero-title .gradient-text {
  background: linear-gradient(90deg, #ff7a29, #ffa200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-hero-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 520px;
  margin-bottom: 2.25rem;
}

/* Value proposition cards */
.auth-value-props {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 540px;
}

.auth-prop-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 13px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.auth-prop-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 94, 0, 0.45);
  transform: translateX(6px);
}

.auth-prop-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.25), rgba(0, 55, 122, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.auth-prop-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.auth-prop-info p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Brand Left Bottom Footer */
.auth-left-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.auth-trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Right Panel (Form Area) */
.auth-split-right {
  flex: 0.95;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem;
  position: relative;
  overflow-y: auto;
}

.auth-right-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

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

.auth-mobile-logo img {
  height: 44px;
  width: auto;
}

.auth-right-center {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.auth-right-center.auth-right-wide {
  max-width: 580px;
}

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

.auth-welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-orange-light);
  color: var(--brand-orange-hover);
  border: 1px solid var(--brand-orange-border);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-form-heading {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--brand-navy-dark);
  letter-spacing: -0.6px;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.auth-form-subheading {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff7700 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 94, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, var(--brand-orange-hover) 0%, #e65200 100%);
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.45);
  transform: translateY(-1px);
}

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

/* Demo Pills Box */
.demo-box-split {
  margin-top: 1.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.demo-box-split .demo-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.75rem;
}

.demo-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.demo-pill-btn:hover {
  background: #00377a;
  border-color: #00377a;
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-register-footer {
  margin-top: 1.75rem;
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.auth-register-footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.auth-register-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-reg-pill {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-decoration: none;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  transition: all 0.2s;
}

.auth-reg-pill:hover {
  background: var(--brand-navy);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .auth-split-wrapper {
    flex-direction: column;
    min-height: 100vh;
  }
  .auth-split-left {
    padding: 2.25rem 2rem 1.75rem;
    flex: none;
  }
  .auth-hero-title {
    font-size: 1.85rem;
  }
  .auth-value-props {
    display: none;
  }
  .auth-split-right {
    padding: 2.25rem 1.5rem 3rem;
    flex: 1;
    overflow-y: visible;
  }
  .auth-mobile-logo {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-split-left {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .auth-left-top {
    margin-bottom: 0.75rem;
  }
  .auth-live-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
  }
  .auth-left-center {
    padding: 0.5rem 0;
    margin: 0;
  }
  .auth-logo-showcase {
    padding: 10px 18px;
    border-radius: 14px;
    margin-bottom: 0.75rem;
  }
  .auth-logo-showcase img {
    height: 48px;
  }
  .auth-hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
  }
  .auth-hero-desc {
    font-size: 0.86rem;
    margin-bottom: 0;
    line-height: 1.45;
  }
  .auth-left-bottom {
    display: none;
  }
  .auth-split-right {
    padding: 1.5rem 1.15rem 2rem;
  }
  .auth-right-top {
    margin-bottom: 1rem;
  }
  .auth-form-heading {
    font-size: 1.65rem;
  }
  .auth-form-subheading {
    font-size: 0.88rem;
  }
  .form-control {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }
  .auth-submit-btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.98rem;
  }
  .demo-box-split {
    padding: 1rem 0.85rem;
  }
  .demo-pills-grid {
    gap: 5px;
  }
  .demo-pill-btn {
    font-size: 0.74rem;
    padding: 5px 9px;
  }
  .auth-register-links {
    gap: 6px;
  }
  .auth-reg-pill {
    font-size: 0.78rem;
    padding: 4px 9px;
  }
  .role-tabs {
    flex-direction: column;
    gap: 4px;
  }
}


