/* ============================================================
   ESCOM Sales Portal — Login Page
   Modern split-screen. No background-image dependency.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────────────────────────── */
.login-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Left panel ───────────────────────────────────────────── */
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  /* bg2.png texture behind the green gradient */
  background:
    linear-gradient(160deg, rgba(13,36,20,0.92) 0%, rgba(22,101,52,0.88) 60%, rgba(16,88,38,0.84) 100%),
    url('/img/bg2.png') center / cover no-repeat;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.login-left::before,
.login-left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #4ade80;
}
.login-left::before {
  width: 500px;
  height: 500px;
  bottom: -180px;
  right: -120px;
}
.login-left::after {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -80px;
}

.login-left-content { position: relative; z-index: 1; max-width: 400px; }

.login-logo {
  width: 80px;
  height: auto;
  margin-bottom: 32px;
   opacity: 0.92;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.login-tagline {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-bottom: 40px;
}

.login-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.80);
}
.login-features li i {
  color: #4ade80;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Right panel ──────────────────────────────────────────── */
.login-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #ffffff;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card-logo {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.login-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 6px;
}

.login-card-sub {
  font-size: 0.8125rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 28px;
}

/* ── Form ─────────────────────────────────────────────────── */
.login-form-group { margin-bottom: 16px; }

.login-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.login-input-icon {
  position: absolute;
  left: 12px;
  color: #d97706;
  font-size: 14px;
  pointer-events: none;
}

.login-input {
  width: 100%;
  height: 42px;
  padding: 0 40px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-input:focus {
  outline: none;
  border-color: #105826;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16,88,38,0.12);
}
.login-input::placeholder { color: #94a3b8; }

.login-toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 14px;
  padding: 0;
  transition: color 0.15s ease;
}
.login-toggle-pw:hover { color: #105826; }

/* ── Submit button ────────────────────────────────────────── */
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 24px;
  background: #105826;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.login-submit:hover {
  background: #0b3d1b;
  box-shadow: 0 4px 12px rgba(16,88,38,0.3);
}
.login-submit:active { transform: scale(0.99); }

.login-submit .spinner-border {
  display: none;
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* ── Footer ───────────────────────────────────────────────── */
.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .login-shell { flex-direction: column; }
  .login-left  { padding: 40px 24px; flex: none; }
  .login-right { width: 100%; padding: 32px 20px; }
  .login-features { display: none; }
  .login-title { font-size: 1.5rem; }
}
