/* ==========================================================================
   NexaShop Login - NexaMarketV2 Pages/Login.cshtml + nexamarket-custom.css
   login bolumu birebir aktarimidir (yalnizca login sayfasinda yuklenir).
   Kaynak: NexaMarketV2 wwwroot/assets/css/nexamarket-custom.css
   ========================================================================== */

/* ==========================================================================
   NexaMarket V2 - Exact Reference Login Design System
   64% Left Promotional Image / 36% Right Login Panel
   ========================================================================== */

.auth-main.nexa-split-auth {
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  background: #f8fafc;
  display: flex;
}

[data-pc-theme="dark"] .auth-main.nexa-split-auth {
  background: #0f172a;
}

/* Desktop Split (>= 992px) */
@media (min-width: 992px) {
  .auth-main.nexa-split-auth .auth-wrapper.v2 {
    display: flex !important;
    flex-direction: row !important;
    width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .auth-main.nexa-split-auth .nexa-left-promo {
    flex: 0 0 64% !important;
    width: 64% !important;
    max-width: 64% !important;
    min-height: 100vh !important;
    position: relative !important;
    background-image: url('/assets/images/nexamarket_login_bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    padding: 48px 56px !important;
  }

  .auth-main.nexa-split-auth .nexa-right-login {
    flex: 0 0 36% !important;
    width: 36% !important;
    max-width: 36% !important;
    min-height: 100vh !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px 28px !important;
    background: #f8fafc !important;
  }
}

/* Tablet & Mobile (< 992px) - Mobile First Login priority per Requirement 10 */
@media (max-width: 991.98px) {
  .auth-main.nexa-split-auth {
    overflow-y: auto !important;
  }

  .auth-main.nexa-split-auth .auth-wrapper.v2 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .auth-main.nexa-split-auth .nexa-right-login {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 32px 18px 40px !important;
    background: #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
  }

  .auth-main.nexa-split-auth .nexa-right-login .nexa-top-theme-bar {
    position: static !important;
    margin-bottom: 18px !important;
    align-self: flex-end !important;
  }

  .auth-main.nexa-split-auth .nexa-right-login .nexa-ref-login-card {
    width: 100% !important;
    max-width: 460px !important;
    margin: 0 auto !important;
  }

  .auth-main.nexa-split-auth .nexa-left-promo {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    position: relative !important;
    background-image: url('/assets/images/nexamarket_login_bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 44px 20px 48px !important;
  }
}

[data-pc-theme="dark"] .auth-main.nexa-split-auth .nexa-right-login {
  background: #0f172a !important;
}

/* Left Panel Gradient Overlay: Dark on left for readability, 100% natural transparent on right */
.nexa-left-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.30) 75%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.nexa-left-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

/* Left & Right Panel Logo */
.nexa-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.nexa-brand-square {
  width: 38px;
  height: 38px;
  background: #0f172a;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.nexa-brand-square .letter-n {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.nexa-brand-square .red-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: #dc2626;
  border-radius: 50%;
}

.nexa-brand-titles {
  display: flex;
  flex-direction: column;
}

.nexa-brand-titles .brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #ffffff;
}

.nexa-brand-titles .brand-name .text-red {
  color: #dc2626;
}

.nexa-brand-titles .brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 3px;
}

.nexa-right-login .nexa-brand-titles .brand-name {
  color: #0f172a;
}

[data-pc-theme="dark"] .nexa-right-login .nexa-brand-titles .brand-name {
  color: #f8fafc;
}

.nexa-right-login .nexa-brand-titles .brand-sub {
  color: #64748b;
}

/* SaaS Badge */
.nexa-ref-saas-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 20px;
}

/* Left Hero Heading */
.nexa-ref-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 16px;
}

.nexa-ref-hero-title .text-red {
  color: #dc2626;
}

.nexa-ref-hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 26px;
  max-width: 540px;
}

/* Three Feature Rows */
.nexa-ref-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.nexa-ref-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 1.45rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.nexa-ref-feature-body h6 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.nexa-ref-feature-body p {
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 480px;
}

/* Bottom Dark Translucent Badges */
.nexa-ref-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
}

.nexa-ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Right Login Card (Clean, Balanced & Wide) */
.nexa-ref-login-card {
  width: 100%;
  max-width: 470px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  padding: 36px 36px;
}

[data-pc-theme="dark"] .nexa-ref-login-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

.nexa-ref-forgot-link {
  color: #dc2626 !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nexa-ref-forgot-link:hover {
  color: #b91c1c !important;
  text-decoration: underline;
}

/* Height Responsive adjustments (e.g., 1366x768 screens) */
@media (max-height: 820px) and (min-width: 992px) {
  .auth-main.nexa-split-auth .nexa-left-promo {
    padding: 30px 44px !important;
  }
  .nexa-brand-lockup {
    margin-bottom: 14px !important;
  }
  .nexa-ref-saas-badge {
    margin-bottom: 12px !important;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }
  .nexa-ref-hero-title {
    font-size: 2.05rem !important;
    margin-bottom: 10px !important;
  }
  .nexa-ref-hero-desc {
    font-size: 0.88rem !important;
    margin-bottom: 18px !important;
    line-height: 1.5 !important;
  }
  .nexa-ref-feature-item {
    margin-bottom: 14px !important;
  }
  .nexa-ref-feature-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
    border-radius: 10px !important;
  }
  .nexa-ref-feature-body h6 {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
  }
  .nexa-ref-feature-body p {
    font-size: 0.82rem !important;
    line-height: 1.38 !important;
  }
  .nexa-ref-badges-row {
    margin-top: 14px !important;
    padding-top: 10px !important;
  }
  .nexa-ref-pill {
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
  }
  .nexa-ref-login-card {
    padding: 26px 32px !important;
    border-radius: 18px !important;
  }
  .nexa-top-theme-bar {
    top: 16px !important;
    right: 24px !important;
  }
}

/* Inputs styled like reference */
.nexa-ref-input-group {
  background: #edf2f7;
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

[data-pc-theme="dark"] .nexa-ref-input-group {
  background: #0f172a;
  border-color: #334155;
}

.nexa-ref-input-group:focus-within {
  border-color: #dc2626;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

[data-pc-theme="dark"] .nexa-ref-input-group:focus-within {
  background: #1e293b;
}

.nexa-ref-input-group .input-icon {
  padding: 0 14px;
  color: #64748b;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

.nexa-ref-input-group .form-control {
  background: transparent !important;
  border: none !important;
  height: 48px;
  font-size: 0.95rem;
  box-shadow: none !important;
  color: #0f172a;
}

[data-pc-theme="dark"] .nexa-ref-input-group .form-control {
  color: #f8fafc;
}

.nexa-ref-toggle-btn {
  background: transparent;
  border: none;
  padding: 0 14px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1.15rem;
}

.nexa-ref-toggle-btn:hover {
  color: #dc2626;
}

/* Submit Button */
.nexa-ref-btn-submit {
  width: 100%;
  height: 48px;
  background: #dc2626;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nexa-ref-btn-submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

/* Bottom Theme Switcher Pills inside Card */
.nexa-ref-theme-container {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3px;
  margin-top: 6px;
}

[data-pc-theme="dark"] .nexa-ref-theme-container {
  background: #0f172a;
  border-color: #334155;
}

.nexa-ref-theme-btn {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.nexa-ref-theme-btn.active {
  background: #dc2626;
  color: #ffffff;
}

[data-pc-theme="dark"] .nexa-ref-theme-btn {
  color: #94a3b8;
}

/* Top-Right Quick Theme Bar */
.nexa-top-theme-bar {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 10;
}

.nexa-top-theme-pill-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-pc-theme="dark"] .nexa-top-theme-pill-group {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

.nexa-top-theme-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.nexa-top-theme-btn:hover {
  color: #dc2626;
}

.nexa-top-theme-btn.active {
  border: 1px solid #fca5a5 !important;
  color: #dc2626 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

[data-pc-theme="dark"] .nexa-top-theme-btn {
  color: #94a3b8;
}

[data-pc-theme="dark"] .nexa-top-theme-btn.active {
  border-color: rgba(220, 38, 38, 0.5) !important;
  color: #f87171 !important;
  background: rgba(220, 38, 38, 0.15) !important;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .nexa-left-gradient-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.88) 100%) !important;
  }
  .nexa-top-theme-bar {
    top: 14px;
    right: 14px;
  }
}

/* ==========================================================================
   NexaShop uyarlama notu (tasarim degisikligi degildir):
   Kaynakta Admindek style.css sagliyordu; NexaShop'ta Bootstrap 5 bulundugu
   icin yalnizca govde yazi tipi ve koyu temada kart ici baslik rengi eslenir.
   Tema anahtarlari korunur: omniMarket.theme / omniMarket.themeMode,
   data-theme / data-pc-theme.
   ========================================================================== */
body {
  font-family: 'Inter', sans-serif;
}

[data-pc-theme="dark"] .nexa-ref-login-card .text-dark {
  color: #f8fafc !important;
}
