/* QuidPrime CRM — Login Page */

body.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  max-width: 820px;
  min-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* ── Left: blue panel ──────────────────── */
.lc-left {
  background: #5B9BD5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.lc-left::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  bottom: -80px; left: -80px;
}
.lc-left::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -30px; right: -40px;
}

.lc-logo {
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.lc-logo img {
  height: 32px; width: auto;
  filter: brightness(0) invert(1);
}

.lc-title {
  font-size: 22px; font-weight: 700;
  color: white; text-align: center;
  line-height: 1.3; letter-spacing: -0.3px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.lc-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  text-align: center; line-height: 1.65;
  max-width: 230px; margin-bottom: 32px;
  position: relative; z-index: 1;
}

.lc-stats {
  display: flex; gap: 24px;
  position: relative; z-index: 1;
}
.lc-stat { text-align: center; }
.lc-stat-val { font-size: 18px; font-weight: 700; color: white; line-height: 1; }
.lc-stat-val span { color: rgba(255,255,255,0.55); font-size: 12px; }
.lc-stat-label { font-size: 9.5px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

/* ── Right: white form ─────────────────── */
.lc-right {
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 44px;
}

.lc-form { width: 100%; max-width: 300px; }

.lc-form-title {
  font-size: 19px; font-weight: 700;
  color: #2D3748; margin-bottom: 4px;
}
.lc-form-sub {
  font-size: 12.5px; color: #718096; margin-bottom: 26px;
}

.f-group { margin-bottom: 14px; }

.f-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #4A5568; margin-bottom: 6px;
}

.f-field { position: relative; }

.f-input {
  width: 100%; height: 40px;
  padding: 0 10px 0 34px;
  border: 1.5px solid #E8ECF0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: #2D3748;
  background: white; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.f-input::placeholder { color: #A0AEC0; }
.f-input:focus {
  border-color: #5B9BD5;
  box-shadow: 0 0 0 3px rgba(91,155,213,0.12);
}

.f-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: #A0AEC0;
  pointer-events: none; transition: color 0.15s;
}
.f-field:focus-within .f-icon { color: #5B9BD5; }

.f-pw-toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 14px; color: #A0AEC0;
  transition: color 0.15s; padding: 0; line-height: 1;
}
.f-pw-toggle:hover { color: #5B9BD5; }
.f-pw-input { padding-right: 32px; }

.btn-submit {
  width: 100%; height: 40px;
  background: #5B9BD5; color: white;
  border: none; border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 20px;
}
.btn-submit:hover { background: #4A8BC4; }

/* Flash */
.login-flash {
  position: fixed; top: 16px; right: 16px;
  z-index: 999; min-width: 280px;
}

@media (max-width: 640px) {
  .login-card { grid-template-columns: 1fr; max-width: 360px; }
  .lc-left { display: none; }
  .lc-right { padding: 32px 24px; }
}