/* DoxERP Login Page — Modern Dark + Glass Design */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

* { box-sizing: border-box; }

body[data-path="login"] {
  font-family: 'Tajawal', sans-serif;
  background: #0b1929;
  margin: 0;
  padding: 0;
}

body[data-path="login"] .web-footer,
body[data-path="login"] .website-footer,
body[data-path="login"] .navbar { display: none !important; }

/* ── Split Layout ── */
.login-content.page-card {
  display: flex;
  min-height: 100vh;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* ── LEFT PANEL — Dark Marketing Side ── */
.login-content-bg {
  flex: 1.1;
  background: linear-gradient(160deg, #0b1929 0%, #0f2744 40%, #133a5c 70%, #1a5276 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

/* Decorative gradient orbs */
.login-content-bg::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-content-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(27, 77, 110, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-content-bg .app-logo {
  max-width: 160px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.login-content-bg .login-hero-section {
  position: relative;
  z-index: 2;
}

/* Hide the old bg image — replaced with marketing content */
.login-content-bg .app-login-bg { display: none; }

.login-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  color: #2EC4B6;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 32px;
}

.login-trust-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #2EC4B6;
  border-radius: 50%;
  flex-shrink: 0;
}

.login-tagline {
  position: relative;
  z-index: 2;
}

.login-tagline h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #fff;
}

.login-tagline h1 .accent { color: #2EC4B6; }

.login-tagline p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 0 36px;
}

/* Floating Stats Cards */
.login-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.login-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 130px;
}

.login-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.login-stat-card .stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.login-stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.login-stat-card .stat-change {
  font-size: 11px;
  color: #2EC4B6;
  margin-top: 4px;
}

/* Feature Pills */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  max-width: 380px;
  transition: background 0.2s ease;
}

.login-feature:hover { background: rgba(255, 255, 255, 0.07); }

.login-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(46, 196, 182, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.login-feature-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.login-feature-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}

/* Copyrights */
.login-content-bg .login-copyrights {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  position: relative;
  z-index: 2;
}

.login-content-bg .login-copyrights a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-decoration: none;
}

.login-content-bg .login-copyrights a:hover { color: #2EC4B6; }

/* ── RIGHT PANEL — Login Form ── */
.login-content-form {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 48px;
  background: #fff;
  position: relative;
}

.login-form-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.page-card-head {
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
}

.page-card-head h2 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #1e293b;
  margin: 0 0 4px;
}

.page-card-head .text-secondary {
  color: #64748b !important;
  font-size: 14px;
  margin-bottom: 6px;
}

.login-form-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1B4D6E, #2EC4B6);
  border-radius: 2px;
  margin: 0 auto 28px;
}

/* Form Fields */
.page-card-body {
  width: 100%;
}

.page-card-body .form-group { margin-bottom: 18px; }

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 6px;
}

.email-field,
.password-field {
  position: relative;
}

.email-field .field-icon,
.password-field .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

[dir="rtl"] .email-field .field-icon,
[dir="rtl"] .password-field .field-icon {
  left: auto;
  right: 14px;
}

.email-field .form-control,
.password-field .form-control {
  padding-left: 44px;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc;
  transition: all 0.2s ease;
  color: #1e293b;
}

[dir="rtl"] .email-field .form-control,
[dir="rtl"] .password-field .form-control {
  padding-left: 14px;
  padding-right: 44px;
}

.email-field .form-control:focus,
.password-field .form-control:focus {
  border-color: #1B4D6E;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 77, 110, 0.08);
}

.email-field .form-control::placeholder,
.password-field .form-control::placeholder {
  color: #94a3b8;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #94a3b8;
  z-index: 2;
  transition: color 0.15s;
}

[dir="rtl"] .toggle-password {
  right: auto;
  left: 14px;
}

.toggle-password:hover { color: #1B4D6E; }

/* Remember Me */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 20px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1B4D6E;
}

/* Login Button */
.page-card-actions { width: 100%; }

.btn-login, .btn-signup, .btn-forgot {
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  background: linear-gradient(135deg, #1B4D6E 0%, #2A6F97 100%);
  border: none;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(27, 77, 110, 0.3);
}

.btn-login:hover, .btn-signup:hover, .btn-forgot:hover {
  background: linear-gradient(135deg, #0F3451 0%, #1B4D6E 100%);
  box-shadow: 0 6px 20px rgba(27, 77, 110, 0.4);
  transform: translateY(-1px);
}

.btn-login:active, .btn-signup:active, .btn-forgot:active {
  transform: translateY(0);
}

/* Forgot Password & Signup Links */
.forgot-password-message {
  padding-top: 12px;
  text-align: center;
}

.forgot-password-message a {
  color: #1B4D6E;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.forgot-password-message a:hover { color: #2A6F97; }

.sign-up-message {
  margin-top: 24px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.sign-up-message a {
  color: #1B4D6E;
  font-weight: 600;
  text-decoration: none;
}

/* Language Switcher */
.login-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.login-lang-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.login-lang-switcher .lang-btn:hover,
.login-lang-switcher .lang-btn.active {
  border-color: #1B4D6E;
  color: #1B4D6E;
  background: rgba(27, 77, 110, 0.04);
}

/* Footer Link */
.login-footer-link {
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
}

.login-footer-link a {
  color: #64748b;
  text-decoration: none;
}

.login-footer-link a:hover { color: #1B4D6E; }

/* Social Login */
.login-divider {
  margin: 16px 0;
  position: relative;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.btn-login-option {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  background: #fff;
  transition: all 0.15s ease;
}

.btn-login-option:hover {
  border-color: #1B4D6E;
  color: #1B4D6E;
  box-shadow: 0 2px 8px rgba(27, 77, 110, 0.08);
}

.for-login, .for-email-login, .for-signup, .for-forgot {
  min-height: 100vh;
}

section.hide { display: none !important; }

/* Indicators */
.indicator { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.indicator.red { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.indicator.green { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.indicator.blue { background: #dbeafe; color: #2563eb; border: 1px solid #bfdbfe; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .login-content.page-card { flex-direction: column; }
  .login-content-bg { display: none; }
  .login-content-form {
    flex: 1;
    padding: 32px 24px;
    max-width: 100%;
    min-height: 100vh;
  }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .login-content-form { flex: 0 0 420px; padding: 32px 36px; }
  .login-tagline h1 { font-size: 30px; }
  .login-content-bg { padding: 40px 36px; }
}

/* ── RTL Fine-Tuning ── */
[dir="rtl"] .login-tagline { text-align: right; }
[dir="rtl"] .login-tagline p { text-align: right; }
[dir="rtl"] .login-stats { flex-direction: row-reverse; }
