/* Login overlay (match original look) */
:root { --hdr-h: 54px; --ftr-h: 44px; }
html, body { height: 100%; }
body { overflow: hidden; }
header {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hdr-h);
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ftr-h);
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.10);
  z-index: 100;
}
.footer-inner { display:flex; gap: 8px; align-items:center; font-weight: 800; font-size: 0.85rem; }
.footer-inner .muted { color: rgba(255,255,255,0.70); }
.footer-link { color: #fff; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

header .brand-logo { height: 52px; width: auto; display: block; }
header .header-actions { display: flex; gap: 10px; align-items: center; }

.login {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--ftr-h);
  top: var(--hdr-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 28px 16px;
  z-index: 50;
}

.login::before {
  content: '';
  position: fixed;
  inset: -120px;
  background:
    radial-gradient(900px 540px at 20% 10%, rgba(11,95,255,0.22), transparent 60%),
    radial-gradient(760px 520px at 80% 30%, rgba(210,25,36,0.18), transparent 55%),
    radial-gradient(900px 700px at 40% 95%, rgba(34,197,94,0.10), transparent 60%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}

.login-card {
  position: relative;
  width: clamp(320px, 38vw, 440px);
  min-height: clamp(320px, 52vh, 360px);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--hdr-h) - 56px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.40);
  padding: 24px;
  border: 1px solid rgba(11,95,255,0.20);
  overflow: auto;
}

.login-head { text-align: center; margin-bottom: 10px; }
.login-logo { height: 180px; width: auto; display: block; margin: 6px auto 10px; }
.login-head h2 { color: #0b5fff; font-size: 1.6rem; margin: 0; letter-spacing: -0.02em; }

.login-form { display: grid; gap: 12px; margin-top: 10px; }
.login-form label { display: grid; gap: 6px; }
.login-form span {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(45,52,54,.75);
}

.login-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(45,52,54,.18);
  font-size: 1rem;
  background: #fff;
  outline: none;
}
.login-form input:focus {
  border-color: rgba(11,95,255,0.45);
  box-shadow: 0 0 0 4px rgba(11,95,255,0.10);
}

.remember-me {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}
.remember-me input {
  width: auto !important;
  margin: 0;
}
.remember-me span {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.btn-solid {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  background: #0b5fff;
  color: #fff;
}
.btn-solid:hover { background: #0747b7; }

.choose {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(11,95,255,0.12);
}
.choose-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.choose-head h3 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; }
.micro { font-size: .85rem; }

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 620px) {
  .portal-grid { grid-template-columns: 1fr; }
}

.portal {
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.10);
  background: linear-gradient(180deg, #fff, #fbfcff);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.portal:hover { box-shadow: 0 18px 40px rgba(0,0,0,0.12); transform: translateY(-1px); }
.portal:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.portal-title { font-weight: 1000; letter-spacing: -0.02em; }
.portal-sub { margin-top: 4px; }

.choose-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.choose-actions .btn {
  background: #111827;
  color: #fff;
  border: 1px solid rgba(17,24,39,0.12);
}
.choose-actions .btn:hover { background: #0b1220; }

.login-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(11,95,255,0.12);
  text-align: center;
  font-size: .75rem;
  color: rgba(45,52,54,.50);
}
.login-footer a { color: #0b5fff; font-weight: 800; }
.login-footer a:hover { text-decoration: underline; }
