:root {
  --primary: #4CB050;
  --primary-hover: #43a047;
  --primary-dark: #2e7d32;
  --primary-light: #edf7ee;
  --primary-glow: rgba(76, 176, 80, 0.3);
  --dark-bg: #0f2916;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #f4f7f5;
  background-image: 
    radial-gradient(at 15% 15%, rgba(76, 176, 80, 0.08) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(67, 160, 71, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, #f4f7f5 0%, #ebf2ec 100%);
  color: var(--slate-800);
  font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

main {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-page-wrapper {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
}

.auth-container {
  max-width: 1020px;
  width: 100%;
}

.auth-card-wrapper {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 50px -10px rgba(15, 35, 20, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  max-height: calc(100vh - 24px);
  display: flex;
}

/* =========================================
   Left Side: FaazSoft Promo & Advert
   ========================================= */
.auth-promo-side {
  background: linear-gradient(145deg, #0e2a14 0%, #164e23 45%, #0b2210 100%);
  position: relative;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 30px !important;
  color: #ffffff;
}

.auth-promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(76, 176, 80, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(129, 199, 132, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-promo-overlay::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: 0;
}

.promo-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #a5d6a7;
  width: fit-content;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CB050;
  box-shadow: 0 0 8px #4CB050;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 176, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 176, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 176, 80, 0); }
}

.promo-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.promo-title .text-accent {
  color: #81c784;
  background: linear-gradient(135deg, #a5d6a7 0%, #4CB050 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  margin-top: 0;
  margin-bottom: 14px;
}

/* Feature List */
.promo-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.promo-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.25s ease;
  margin-bottom: 0;
}

.promo-feature-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(129, 199, 132, 0.3);
  transform: translateX(3px);
}

.feature-icon-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(76, 176, 80, 0.3) 0%, rgba(46, 125, 50, 0.4) 100%);
  border: 1px solid rgba(129, 199, 132, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5d6a7;
  font-size: 13px;
}

.feature-text h6 {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.feature-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.3;
}

/* Promo Footer */
.promo-footer-cta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cta-trust-badge {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.cta-website-link {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-website-link a {
  color: #81c784;
  text-decoration: none;
  transition: color 0.2s;
}

.cta-website-link a:hover {
  color: #c8e6c9;
  text-decoration: underline;
}

/* =========================================
   Right Side: Login Form
   ========================================= */
.auth-form-side {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 34px !important;
}

.auth-form-inner {
  width: 100%;
  max-width: 360px;
}

.auth-header {
  margin-bottom: 16px;
}

.auth-logo {
  max-height: 42px;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 6px;
}

.auth-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.auth-subheading {
  font-size: 12.5px;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.4;
}

/* Form inputs & controls */
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 4px;
  display: block;
}

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

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--slate-400);
  font-size: 13px;
  pointer-events: none;
  z-index: 4;
  transition: color 0.2s ease;
}

.auth-input {
  width: 100%;
  height: 42px;
  padding: 8px 12px 8px 38px !important;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--slate-900);
  background: #f8fafc;
  border: 1.5px solid var(--slate-200);
  border-radius: 9px;
  transition: all 0.2s ease;
}

.auth-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.input-icon-group:focus-within .input-icon {
  color: var(--primary);
}

.password-toggle {
  position: absolute;
  right: 12px;
  color: var(--slate-400);
  cursor: pointer;
  padding: 4px;
  z-index: 4;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--slate-700);
}

.forgot-link {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px var(--primary-glow);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
  box-shadow: 0 5px 16px rgba(76, 176, 80, 0.4);
  transform: translateY(-1px);
}

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

/* Divider & Register link */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0 10px;
  color: var(--slate-400);
  font-size: 11.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--slate-200);
}

.auth-divider span {
  padding: 0 8px;
}

.btn-auth-outline {
  background: #ffffff;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.btn-auth-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--slate-900);
  text-decoration: none;
}

/* Checkbox */
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-control-label {
  font-size: 12px;
  cursor: pointer;
}

/* Security Footer */
.auth-security-footer {
  border-top: 1px solid var(--slate-100);
  padding-top: 12px;
  margin-top: 12px !important;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-50);
  padding: 3px 8px;
  border-radius: 16px;
  border: 1px solid var(--slate-200);
}

/* Alerts */
.alert {
  border-radius: 8px;
  font-size: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

/* General Card Styles for Register/Password views */
.card-signin {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 45px -10px rgba(15, 35, 20, 0.1);
}

.logo {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  border-radius: 6px;
}

.form-signup .form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: 9px;
  height: auto;
  color: var(--slate-900);
  background: #f8fafc;
  transition: all 0.2s;
}

.form-signup .form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-signup .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 9px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-register {
  text-align: center;
  display: block;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.btn-register:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* =========================================
   Tablet & Laptop Fit Media Queries (No Scroll)
   ========================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
  .auth-container {
    max-width: 720px;
  }

  .auth-promo-side {
    display: flex !important;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 22px 20px !important;
  }

  .auth-form-side {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 22px 22px !important;
  }

  .promo-title {
    font-size: 17px;
  }

  .promo-subtitle {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .promo-feature-item {
    padding: 6px 8px;
  }

  .feature-icon-wrap {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 12px;
  }

  .feature-text h6 {
    font-size: 11px;
  }

  .feature-text p {
    font-size: 10px;
  }
}

/* Small mobile devices */
@media (max-width: 767.98px) {
  .auth-page-wrapper {
    height: auto;
    min-height: 100vh;
    padding: 20px 12px;
    overflow-y: auto;
  }

  .auth-card-wrapper {
    border-radius: 16px;
    max-width: 420px;
    margin: 0 auto;
    max-height: none;
  }

  .auth-form-side {
    padding: 28px 20px !important;
  }
}