/* ================================================================
   hvac-login.css — AcTech Pro Login Dark Ice
   Fuentes: Montserrat (display) · Poppins (body)
   HMGroup
================================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:          #070e1a;
  --bg-card:     #0d1c33;
  --bg-left:     linear-gradient(160deg,#0c1e3a 0%,#0b1628 55%,#091520 100%);
  --accent:      #0ea5e9;
  --accent-dim:  rgba(14,165,233,.14);
  --accent-glow: rgba(14,165,233,.32);
  --cyan:        #22d3ee;
  --border:      rgba(255,255,255,.08);
  --border-hi:   rgba(14,165,233,.45);
  --t1: #e2e8f0;
  --t2: rgba(226,232,240,.6);
  --t3: rgba(226,232,240,.3);
  --green: #10b981;
  --red:   #ef4444;
  --r2: 10px;  --r3: 14px;  --r4: 20px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* ── Canvas fondo partículas / ECG ── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* Grid pattern */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.04) 1px, transparent 1px),
    linear-gradient(90deg,rgba(14,165,233,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* ── Wrapper ── */
.login-wrapper {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 16px; width: 100%;
}

/* ── Card ── */
.card {
  display: grid;
  grid-template-columns: 240px 1fr;
  width: 100%; max-width: 780px;
  border-radius: var(--r4);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 40px rgba(14,165,233,.06);
  animation: fadeIn .4s ease both;
}

/* ── Panel izquierdo ── */
.left {
  background: var(--bg-left);
  padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.left::before {
  content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle,rgba(14,165,233,.10) 0%,transparent 65%);
  top: -70px; right: -70px; pointer-events: none;
}
.brand-icon {
  width: 68px; height: 68px; border-radius: 16px;
  background: rgba(14,165,233,.12); border: 1.5px solid rgba(14,165,233,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 18px;
  animation: pulseGlow 3s ease-in-out infinite;
  position: relative; z-index: 1;
}
h1 {
  font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: -.3px; margin-bottom: 4px;
  position: relative; z-index: 1; line-height: 1.2;
}
h1 em { color: var(--accent); font-style: normal; }
.left p {
  font-size: 11px; color: rgba(255,255,255,.4); line-height: 1.7;
  margin-bottom: 18px; position: relative; z-index: 1;
}
.stats {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.2);
  border-radius: 10px; padding: 8px 12px;
}
.stat strong { font-family: 'Montserrat',sans-serif; font-size: 13px; font-weight: 800; color: var(--accent); }
.stat span   { font-size: 9px; color: var(--t3); margin-top: 2px; }
.brand-chips {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  position: relative; z-index: 1;
}
.brand-chips span {
  padding: 3px 9px; border-radius: 20px; font-size: 9px; font-weight: 600;
  border: 1px solid rgba(14,165,233,.25); color: rgba(14,165,233,.7);
}

/* ── Panel derecho ── */
.right {
  background: var(--bg-card);
  padding: 28px 28px 24px;
  overflow-y: auto; max-height: 96vh;
}
.right::-webkit-scrollbar { width: 0; }

/* ── Tabs ── */
.tabs {
  display: flex; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 3px; margin-bottom: 22px; gap: 3px;
}
.tab-btn {
  flex: 1; padding: 9px; background: none; border: none;
  border-radius: 8px; font-family: 'Poppins',sans-serif;
  font-size: 12px; font-weight: 600; color: var(--t3);
  cursor: pointer; transition: all .2s;
}
.tab-btn.active { background: var(--accent); color: #0c1a2e; }

/* ── Panels ── */
.form-panel { display: none; }
.form-panel.active { display: block; }
.form-title {
  font-family: 'Montserrat',sans-serif;
  font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 3px;
}
.subtitle { font-size: 11px; color: var(--t3); margin-bottom: 20px; }

/* ── Inputs ── */
.input-group {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 0 12px; margin-bottom: 10px;
  transition: border-color .18s;
}
.input-group:focus-within { border-color: var(--border-hi); box-shadow: 0 0 0 3px rgba(14,165,233,.08); }
.input-group .icon { font-size: 15px; margin-right: 8px; opacity: .45; flex-shrink: 0; }
.input-group input {
  flex: 1; border: none; background: transparent;
  color: var(--t1); font-family: 'Poppins',sans-serif;
  font-size: 13px; padding: 11px 0; outline: none;
}
.input-group input::placeholder { color: var(--t3); }
.show-toggle {
  background: none; border: none; color: var(--t3);
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  cursor: pointer; padding: 4px 0; transition: color .18s;
}
.show-toggle:hover { color: var(--accent); }

/* ── Row check ── */
.row-check {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-size: 11px;
}
.row-check label { display: flex; align-items: center; gap: 6px; color: var(--t3); cursor: pointer; }
.row-check input { accent-color: var(--accent); }
.row-check a { color: var(--accent); cursor: pointer; text-decoration: none; }

/* ── Botón principal ── */
.btn-primary {
  width: 100%; background: var(--accent); color: #0c1a2e;
  border: none; border-radius: var(--r2); padding: 12px;
  font-family: 'Poppins',sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px;
}
.btn-primary:hover { background: #0c88c4; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.switch-text { text-align: center; font-size: 12px; color: var(--t3); }
.switch-text a { color: var(--accent); cursor: pointer; font-weight: 600; }
.switch-text a:hover { color: var(--cyan); }

/* ── Animaciones ── */
@keyframes fadeIn    { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulseGlow { 0%,100%{box-shadow:0 0 8px var(--accent-glow)} 50%{box-shadow:0 0 22px var(--accent-glow)} }

/* ── Responsive ── */
@media(max-width:600px) {
  .card { grid-template-columns: 1fr; border-radius: 0; }
  .left { display: none; }
  .right { min-height: 100vh; padding: 24px 20px; }
}
