/* ===================== LOGIN PAGE ===================== */
#login-page {
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}

/* ---- LEFT PANEL ---- */
.login-left {
  width: 440px;
  min-width: 440px;
  background: #0a1628;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}

/* decorative circles */
.login-left::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(26,111,219,0.1);
  bottom: -130px; right: -110px;
  pointer-events: none;
}
.login-left::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(26,111,219,0.07);
  top: -70px; left: -70px;
  pointer-events: none;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  z-index: 1;
  text-align: center;
}
.login-brand-icon {
  width: 68px; height: 68px;
  background: #1a6fdb;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  box-shadow: 0 8px 32px rgba(26,111,219,0.5);
}
.login-brand-name {
  font-size: 30px; font-weight: 600; color: #fff;
  letter-spacing: -0.5px; line-height: 1;
}
.login-brand-sub {
  font-size: 11px; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 2px;
}

.login-features { z-index: 1; width: 100%; }

.login-feature {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.login-feature:last-child { border-bottom: none; }

.lf-icon {
  width: 40px; height: 40px;
  background: rgba(26,111,219,0.18);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #5ba3f5;
  flex-shrink: 0;
}
.lf-text { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.45; }
.lf-text strong { color: #fff; font-weight: 500; display: block; margin-bottom: 1px; }

.login-copyright {
  position: absolute; bottom: 22px;
  font-size: 11px; color: rgba(255,255,255,0.18);
  z-index: 1; text-align: center;
}

/* ---- RIGHT PANEL ---- */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #f0f4f8;
  overflow-y: auto;
}

/* ---- CARD ---- */
.login-card {
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 20px;
  padding: 40px 38px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 4px 32px rgba(10,22,40,0.07);
  animation: cardIn 0.25s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-card-title {
  font-size: 22px; font-weight: 600; color: #0a1628;
  letter-spacing: -0.4px; margin-bottom: 6px;
}
.login-card-sub {
  font-size: 13px; color: #6b7a8d;
  margin-bottom: 28px; line-height: 1.55;
}

/* ---- FIELD ---- */
.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-size: 12px; font-weight: 500; color: #0a1628;
  margin-bottom: 6px;
}
.req { color: #e24b4a; }

.input-wrap { position: relative; }
.inp-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px; color: #8896a5;
  pointer-events: none;
  transition: color 0.15s;
  z-index: 1;
}
.input-wrap:focus-within .inp-icon { color: #1a6fdb; }

.login-input {
  width: 100%;
  border: 1.5px solid #dce4ee;
  border-radius: 10px;
  padding: 11px 40px 11px 40px;
  font-size: 14px; color: #0a1628;
  outline: none;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input:focus {
  border-color: #1a6fdb;
  box-shadow: 0 0 0 3px rgba(26,111,219,0.1);
}
.login-input.has-error {
  border-color: #e24b4a;
}
.login-input.has-error:focus {
  box-shadow: 0 0 0 3px rgba(226,75,74,0.1);
}

.pwd-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px; color: #8896a5;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 1;
}
.pwd-toggle:hover { color: #1a6fdb; }

/* ---- ERRORS ---- */
.field-err {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: #a32d2d;
  margin-top: 5px;
}
.field-err i { font-size: 13px; }
.field-err.hidden { display: none; }

/* ---- OPTIONS ROW ---- */
.login-row-opts {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.remember-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: #4a5568; cursor: pointer;
}
.remember-label input { width: 15px; height: 15px; accent-color: #1a6fdb; cursor: pointer; }

.forgot-link {
  font-size: 13px; color: #1a6fdb; cursor: pointer;
  transition: opacity 0.15s;
}
.forgot-link:hover { opacity: 0.75; }

/* ---- BUTTON ---- */
.login-btn {
  width: 100%;
  background: #1a6fdb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}
.login-btn:hover { background: #0d4fa0; }
.login-btn:active { transform: scale(0.98); }
.login-btn:disabled { background: #b5d4f4; cursor: not-allowed; transform: none; }
.login-btn i { font-size: 17px; }

/* ---- DEMO BOX ---- */
.demo-box {
  background: #f7f9fc;
  border: 1px solid #dce4ee;
  border-radius: 11px;
  padding: 14px 16px;
  margin-top: 18px;
}
.demo-title {
  font-size: 12px; font-weight: 600; color: #0a1628;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.demo-title i { color: #1a6fdb; font-size: 14px; }
.demo-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #4a5568; margin-bottom: 4px;
}
.demo-row code {
  background: #e6f1fb; color: #185fa5;
  padding: 2px 8px; border-radius: 5px;
  font-family: 'DM Mono', monospace; font-size: 12px;
}
.demo-fill-btn {
  margin-top: 10px; width: 100%;
  background: none;
  border: 1.5px solid #1a6fdb;
  color: #1a6fdb;
  border-radius: 8px;
  padding: 7px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.15s;
}
.demo-fill-btn:hover { background: #1a6fdb; color: #fff; }

/* ---- BOTTOM LINK ---- */
.login-bottom-link {
  text-align: center;
  font-size: 13px; color: #6b7a8d;
  margin-top: 18px;
}
.login-bottom-link a { color: #1a6fdb; font-weight: 500; cursor: pointer; }
.login-bottom-link a:hover { text-decoration: underline; }

/* ---- BACK ROW ---- */
.login-back-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px;
}
.back-btn {
  background: none;
  border: 1px solid #dce4ee;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #6b7a8d;
  transition: all 0.15s; flex-shrink: 0;
}
.back-btn:hover { background: #f0f4f8; color: #0a1628; }

/* ---- PASSWORD STRENGTH ---- */
.pwd-strength-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px;
}
.pwd-bar-bg {
  flex: 1; height: 4px;
  background: #e8edf3;
  border-radius: 4px;
  overflow: hidden;
}
.pwd-bar {
  height: 100%; border-radius: 4px;
  width: 0;
  transition: width 0.35s ease, background 0.35s ease;
}
.pwd-label { font-size: 11px; font-weight: 500; min-width: 50px; }
.pwd-hint { font-size: 11px; color: #8896a5; margin-top: 4px; }

/* ---- SHAKE ANIMATION ---- */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-7px); }
  40%     { transform: translateX(7px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; }

/* ---- SPINNER ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.spin-anim { animation: spin 0.7s linear infinite; display: inline-block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 780px) {
  #login-page { flex-direction: column; height: auto; min-height: 100vh; }
  .login-left { width: 100%; min-width: 0; padding: 32px 24px; }
  .login-features { display: none; }
  .login-right { padding: 24px 16px; }
  .login-card { padding: 28px 22px; }
}
