/* ── Login modal (partials/login_modal.html) ──
   Modern luxury fintech aesthetic matching Capitap's Navy/Gold theme.
   Shared across both design.css marketing pages and auth.css flow pages. */
.lm-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 75, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

@keyframes lmFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lm-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(168, 124, 58, 0.18);
  border-radius: 20px;
  box-shadow:
    0 24px 64px -12px rgba(13, 27, 75, 0.28),
    0 2px 8px rgba(13, 27, 75, 0.06);
  width: 100%;
  max-width: 410px;
  padding: 38px 32px 32px;
  animation: lmFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.lm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8f4ec;
  border: 1px solid #eae3d4;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #5a6478;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.lm-close:hover {
  background: #0d1b4b;
  border-color: #0d1b4b;
  color: #ffffff;
}

.lm-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 124, 58, 0.1);
  color: #a87c3a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lm-brand-badge i {
  font-size: 10px;
}

.lm-title {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d1b4b;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.lm-sub {
  font-size: 13.5px;
  color: #5a6478;
  line-height: 1.55;
  margin-bottom: 22px;
}

.lm-field {
  margin-bottom: 18px;
}

.lm-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 7px;
}

.lm-phone {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.lm-cc {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1.5px solid #e2dcd2;
  border-radius: 10px;
  background: #faf7f2;
  font-size: 13.5px;
  font-weight: 600;
  color: #0d1b4b;
  flex-shrink: 0;
  user-select: none;
}

.lm-input {
  flex: 1;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2dcd2;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: "Inter", sans-serif;
  color: #0d1b4b;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.lm-input:focus {
  border-color: #a87c3a;
  box-shadow: 0 0 0 3.5px rgba(168, 124, 58, 0.14);
}
.lm-input::placeholder {
  color: #94a3b8;
}

.lm-input-otp {
  text-align: center;
  letter-spacing: 10px;
  font-family: "Poppins", monospace;
  font-size: 24px;
  font-weight: 700;
  background: #faf7f2;
  padding: 12px 14px;
}
.lm-input-otp:focus {
  background: #ffffff;
  border-color: #a87c3a;
}

.lm-submit {
  width: 100%;
  padding: 13px 18px;
  margin-top: 6px;
  background: linear-gradient(135deg, #0d1b4b 0%, #152660 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(13, 27, 75, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 27, 75, 0.3);
  opacity: 0.96;
}

.lm-footer-note {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1ece1;
}
.lm-footer-note a {
  color: #a87c3a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.lm-footer-note a:hover {
  color: #0d1b4b;
  text-decoration: underline;
}

.lm-links {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.lm-link-btn {
  background: none;
  border: none;
  color: #a87c3a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
}
.lm-link-btn:hover {
  color: #0d1b4b;
}

.lm-error {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.lm-debug {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #f59e0b;
}
