/* ============================================================
   Datalygence — Login page
   Namespace: dlgLogin-*  (kept isolated from chat.css / sidebar.css)
   ============================================================ */

.dlgLogin-page {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Plus Jakarta Sans', Inter, Arial, sans-serif;
}

/* Mobile top bar — hidden on wide viewports, shown <960px so brand
   isn't lost when the hero panel disappears. */
.dlgLogin-mobileBar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #0A0F1E 0%, #0c1426 100%);
}
.dlgLogin-mobileMark { display: inline-flex; align-items: center; }
.dlgLogin-mobileWord {
  font-family: 'Plus Jakarta Sans', Inter, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* ---------------------------------------------------------------
   LEFT — hero / brand story panel
   --------------------------------------------------------------- */
.dlgLogin-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0A0F1E 0%, #0c1426 65%, #0A0F1E 100%);
  padding: 48px 56px 24px;
}

.dlgLogin-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.dlgLogin-glow--a {
  width: 620px; height: 620px;
  top: -220px; left: -160px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, rgba(37,99,235,0) 70%);
}
.dlgLogin-glow--b {
  width: 520px; height: 520px;
  bottom: -180px; right: -140px;
  background: radial-gradient(circle, rgba(79,70,229,0.10) 0%, rgba(79,70,229,0) 70%);
}
.dlgLogin-glow--c {
  width: 380px; height: 380px;
  top: 38%; left: 30%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0) 70%);
}
.dlgLogin-dotgrid {
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 0 0, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 24px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.dlgLogin-heroInner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.dlgLogin-heroBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 5vh, 56px);
}
.dlgLogin-heroMark { display: inline-flex; align-items: center; flex-shrink: 0; }
.dlgLogin-heroWord {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.dlgLogin-headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.dlgLogin-headline-accent {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dlgLogin-sub {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.55;
  color: #94A3B8;
  font-family: 'DM Sans', Inter, Arial, sans-serif;
}

.dlgLogin-diagram {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
}
.dlgLogin-diagram svg { display: block; }

.dlgLogin-copyright {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #64748B;
  padding-top: 8px;
}

/* Diagram animation — data flowing database -> platform -> capabilities */
@media (prefers-reduced-motion: no-preference) {
  .dlgLogin-flowline {
    animation: dlgLogin-dashFlow 2.6s linear infinite;
  }
  .dlgLogin-flowline-thick {
    animation: dlgLogin-dashFlowThick 1.8s linear infinite;
  }
  .dlgLogin-platformPulse {
    animation: dlgLogin-pulse 3.2s ease-in-out infinite;
    transform-origin: 260px 196px;
  }
}
@keyframes dlgLogin-dashFlow {
  from { stroke-dashoffset: 40; }
  to   { stroke-dashoffset: 0; }
}
@keyframes dlgLogin-dashFlowThick {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}
@keyframes dlgLogin-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* ---------------------------------------------------------------
   RIGHT — sign-in form panel
   --------------------------------------------------------------- */
.dlgLogin-formPanel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 40px 24px;
}

.dlgLogin-formCol {
  width: 100%;
  max-width: 380px;
}

.dlgLogin-formBrand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.dlgLogin-formName {
  margin-top: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #0c1426;
}
.dlgLogin-formSub {
  font-family: 'DM Sans', Inter, Arial, sans-serif;
  font-size: 13px;
  color: #64748B;
}

.dlgLogin-formLead {
  margin: 20px 0 24px;
  text-align: center;
  font-size: 14px;
  color: #475569;
  font-family: 'DM Sans', Inter, Arial, sans-serif;
}

.dlgLogin-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 13px;
  line-height: 1.4;
}

.dlgLogin-form {
  display: flex;
  flex-direction: column;
}

.dlgLogin-label {
  font-size: 13px;
  font-weight: 600;
  color: #0c1426;
  margin: 0 0 6px;
}
.dlgLogin-label + .dlgLogin-label { margin-top: 0; }

.dlgLogin-input {
  height: 44px;
  padding: 0 14px;
  margin-bottom: 16px;
  font-size: 15px;
  font-family: inherit;
  color: #0c1426;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dlgLogin-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.dlgLogin-btn {
  height: 46px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dlgLogin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}
.dlgLogin-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 959px) {
  .dlgLogin-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .dlgLogin-hero { display: none; }
  .dlgLogin-mobileBar { display: flex; }
  .dlgLogin-formPanel { padding: 32px 20px; }
}

@media (max-height: 700px) {
  .dlgLogin-hero { padding-top: 32px; padding-bottom: 16px; }
  .dlgLogin-heroBrand { margin-bottom: 20px; }
  .dlgLogin-diagram { min-height: 160px; }
}
