/* IBD Dashboard — Login Page */
/* ─────────────────────────────────────────────
   6. LOGIN
   ───────────────────────────────────────────── */
/* ── Split-screen login ── */
.login-wrap {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: stretch;
  z-index: 9999;
}
.login-card {
  display: flex; flex-direction: row;
  width: 100%; height: 100%;
}

/* Left dark panel */
.login-left {
  flex: 0 0 52%;
  position: relative;
  background: #06091a;
  overflow: hidden;
  display: flex; align-items: flex-end; padding: 72px;
}
.login-left canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.login-left-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,9,26,.85) 0%, rgba(6,9,26,.1) 60%, transparent 100%);
  pointer-events: none;
}
.login-left-content {
  position: relative; z-index: 1;
}
.login-left-logo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: contain;
  margin-bottom: 36px; display: block;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
}
.login-left-title {
  font-size: 78px; font-weight: 800; line-height: 1.06;
  color: #fff; letter-spacing: -0.02em; margin-bottom: 24px;
}
.login-left-sub {
  font-size: 24px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 10px;
}
.login-left-tagline {
  font-size: 16px; color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 20px;
}

/* Right white panel */
.login-right {
  flex: 1;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 60px;
}
.login-box {
  width: 100%; max-width: 520px;
}
.login-logo { margin-bottom: 44px; }
.login-logo h2 { font-size: 46px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.02em; }
.login-logo p  { font-size: 18px; color: var(--text-muted); }

.field              { margin-bottom: 26px; }
.field label        { display: block; font-size: 15px; font-weight: 500; color: var(--text-secondary); margin-bottom: 9px; }
.field input        { width: 100%; padding: 17px 20px; border: 0.5px solid #e0e0e0; border-radius: 12px; font-size: 17px; outline: none; transition: border-color .15s; background: var(--bg-card); color: var(--text-primary); }
.field input:focus  { border-color: var(--accent); }

.login-btn          { width: 100%; padding: 19px; border-radius: 12px; border: none; background: var(--text-primary); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-btn:hover    { background: #2d2d4e; }
.login-btn.loading  { opacity: .75; cursor: not-allowed; }
.login-btn-spinner  {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loginSpin .7s linear infinite;
}
@keyframes loginSpin { to { transform: rotate(360deg); } }
.login-error        { font-size: 15px; color: var(--danger); text-align: center; margin-top: 16px; display: none; }
.login-error.show   { display: block; }


/* ─────────────────────────────────────────────
   7. APP SHELL
   ───────────────────────────────────────────── */
.app { display: none; min-height: 100vh; }


