* { box-sizing: border-box; }

body.login-body {
  margin: 0;
  padding: 0;
  background: #f0f4f9 !important;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ── Main card ───────────────────────────────────── */
.login-card {
  display: flex;
  width: 860px;
  max-width: 96vw;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 90, 160, 0.18), 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Left brand panel ────────────────────────────── */
.login-brand {
  width: 44%;
  background: linear-gradient(145deg, #1a5ba0 0%, #1e7dd4 60%, #38a0f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -80px; right: -100px;
}
.login-brand::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -60px; left: -60px;
}

.login-brand-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative; z-index: 1;
}
.login-brand-logo img { width: 54px; height: 54px; object-fit: contain; }

.login-brand-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}

.login-brand-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  text-align: center;
  line-height: 1.5;
  position: relative; z-index: 1;
}

.login-brand-dots {
  display: flex; gap: 6px; margin-top: 32px;
  position: relative; z-index: 1;
}
.login-brand-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.login-brand-dots span:first-child { background: rgba(255,255,255,0.85); width: 22px; border-radius: 4px; }

/* ── Right form panel ────────────────────────────── */
.login-form-panel {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.login-form-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 4px;
}
.login-form-sub {
  font-size: 13.5px;
  color: #8a95b0;
  margin-bottom: 32px;
}

.login-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #e8f3ff;
  color: #1a5ba0;
  border-left: 3px solid #1a5ba0;
}
.login-msg.danger {
  background: #fff0f0;
  color: #c0392b;
  border-left-color: #c0392b;
}

.login-field {
  margin-bottom: 18px;
}
.login-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.login-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde3ee;
  border-radius: 10px;
  font-size: 14.5px;
  color: #1a2744;
  background: #f8fafd;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}
.login-field input:focus {
  border-color: #1e7dd4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 125, 212, 0.12);
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1a5ba0, #1e7dd4);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  margin-top: 6px;
  transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(26, 91, 160, 0.35);
}
.login-btn:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 91, 160, 0.42);
}
.login-btn:active { transform: translateY(0); }

/* ── Hide bootstrap defaults ─────────────────────── */
.form-signin { display: contents; }
.min-height { min-height: unset; }
main.form-signin { display: contents; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .login-brand { display: none; }
  .login-form-panel { padding: 36px 28px; }
  .login-card { border-radius: 16px; }
}
