*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Montserrat', system-ui, sans-serif; overflow: hidden; }
/* Mobile: allow scroll if card is taller than viewport */
@media(max-width:600px){ html, body { overflow-y: auto; height: auto; min-height: 100%; } }

/* ── CANVAS BACKGROUND ── */
#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #020d18;
}

/* ── GRADIENT OVERLAY ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(13,101,152,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(90,35,59,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(99,159,171,0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* ── MAIN LAYOUT ── */
.login-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── CARD ── */
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 26, 40, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99,159,171,0.18);
  border-radius: 20px;
  padding: 44px 40px 36px;
  box-shadow:
    0 0 0 1px rgba(13,101,152,0.10),
    0 24px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(13,101,152,0.08) inset;
  text-align: center;
  animation: cardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

/* ── LOGO ── */
.logo-wrap {
  margin-bottom: 8px;
}
.logo-img {
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  mix-blend-mode: screen;
  display: block;
  margin: 0 auto;
}

/* ── DIVIDER ── */
.card-divider {
  width: 60px;
  height: 1px;
  background: rgba(99,159,171,0.3);
  margin: 14px auto 18px;
}

/* ── TEAM HUB LABEL ── */
.team-hub-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(153,202,217,0.7);
  margin-bottom: 24px;
  display: block;
}

/* ── TITLE ── */
.login-title {
  font-size: 22px;
  font-weight: 800;
  color: #e8f4fb;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.login-subtitle {
  font-size: 12px;
  color: rgba(184,207,224,0.55);
  margin-bottom: 32px;
}

/* ── MS BUTTON ── */
.ms-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: #0D6598;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}
.ms-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.ms-btn:hover {
  background: #0a4f76;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(13,101,152,0.45), 0 0 0 1px rgba(153,202,217,0.2);
}
.ms-btn:active {
  transform: translateY(0);
}

/* Microsoft logo SVG */
.ms-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}





/* ── LEGAL NOTE ── */
.legal-note {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(90,35,59,0.12);
  border: 1px solid rgba(90,35,59,0.2);
  border-radius: 8px;
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(184,207,224,0.45);
  text-align: left;
}
.legal-note strong {
  color: rgba(184,207,224,0.65);
  font-weight: 700;
}

/* ── FOOTER ── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(107,138,168,0.5);
  border-top: 1px solid rgba(99,159,171,0.07);
  background: rgba(2,13,24,0.5);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  gap: 8px;
}
footer a {
  color: rgba(107,138,168,0.55);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 600;
}
footer a:hover { color: rgba(153,202,217,0.8); }
.footer-links { display: flex; gap: 20px; }
.footer-copy { font-weight: 500; }

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,101,152,0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
/* ── DISABLED MS BUTTON ── */
.ms-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── CREDENTIAL FORM ── */
.field-group {
  margin-bottom: 14px;
  text-align: left;
}
.field-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(153,202,217,0.65);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.field-inp {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(99,159,171,0.25);
  border-radius: 8px;
  color: #e8f4fb;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-inp::placeholder { color: rgba(184,207,224,0.25); }
.field-inp:focus {
  border-color: rgba(13,101,152,0.7);
  box-shadow: 0 0 0 3px rgba(13,101,152,0.15);
}

/* ── SUBMIT BUTTON ── */
.login-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: #0D6598;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  letter-spacing: 0.2px;
  margin-top: 4px;
}
.login-submit-btn:hover:not(:disabled) {
  background: #0a4f76;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(13,101,152,0.45);
}
.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── EXPIRED SESSION BANNER ── */
.session-expired-banner {
  background: rgba(196,122,10,0.15);
  border: 1px solid rgba(196,122,10,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: #fbbf24;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
