/* Universal (homepage) login modal — reuses .mt-login-* field/tab styles
   from login.css, just wrapped in a centered overlay card instead of the
   institute-branded split-panel layout. */

.mt-ulogin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 15, 30, 0.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mt-ulogin-overlay.active { display: flex; }

.mt-ulogin-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: mtUloginPop 0.22s ease;
}
@keyframes mtUloginPop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mt-ulogin-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted, #888);
  cursor: pointer;
  padding: 4px 8px;
}
.mt-ulogin-close:hover { color: #222; }

.mt-ulogin-card .mt-login-tabs { margin-top: 18px; }
.mt-ulogin-card .mt-alert { margin-top: 14px; }
.mt-ulogin-card .mt-login-footer { text-align: center; margin-top: 18px; }

@media (max-width: 480px) {
  .mt-ulogin-card { padding: 28px 20px 22px; }
}
