/* ═══════════════════════════════════════════════════
   SIGNALPULSE — auth.css  v2
   Cinematic full-bleed with terminal-style card
═══════════════════════════════════════════════════ */

#screen-auth {
  background: var(--bg);
  align-items: center; justify-content: center; overflow: hidden;
}

/* Signal-wave particle canvas fills the whole screen */
#auth-particle-canvas {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}

/* Vignette darkening edges */
.auth-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(6,8,15,0.75) 100%);
}

/* ── TERMINAL CARD ── */
.auth-card {
  position: relative; z-index: 5;
  width: 400px;
  background: rgba(9,12,23,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(45,212,255,0.15);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(45,212,255,0.06),
    0 24px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(45,212,255,0.04);
  animation: cardIn .7s cubic-bezier(.16,1,.3,1) both;
}
@keyframes cardIn { from{opacity:0;transform:translateY(20px) scale(.97);} to{opacity:1;transform:none;} }

/* Scanline over card */
.auth-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent 0px, transparent 3px,
    rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px
  );
}

/* Terminal title bar */
.auth-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: rgba(45,212,255,0.05);
  border-bottom: 1px solid rgba(45,212,255,0.12);
}
.auth-tb-dots { display: flex; gap: 6px; }
.auth-tb-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.auth-tb-dot:nth-child(1) { background: #ff5f56; }
.auth-tb-dot:nth-child(2) { background: #febc2e; }
.auth-tb-dot:nth-child(3) { background: #28c840; }
.auth-tb-label {
  font-family: var(--fm); font-size: 10px; color: var(--sub);
  letter-spacing: .12em; text-transform: uppercase; margin-left: 6px;
}
.auth-tb-status {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  font-family: var(--fm); font-size: 9px; color: var(--sub);
}

/* Card inner */
.auth-inner { padding: 32px 32px 28px; }

/* Logo */
.auth-logo {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.auth-hex-wrap {
  position: relative; width: 64px; height: 74px;
  display: flex; align-items: center; justify-content: center;
}
.auth-hex-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.auth-target {
  position: relative; z-index: 2; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.auth-t-c { position: absolute; border-radius: 50%; border: 1px solid rgba(168,85,247,0.5); }
.auth-t-c1 { width: 26px; height: 26px; animation: tPulse 1.2s ease-in-out infinite; }
.auth-t-c2 { width: 16px; height: 16px; animation: tPulse 1.2s ease-in-out infinite .3s; }
.auth-t-cross { position: absolute; background: rgba(168,85,247,0.6); }
.auth-t-h { width: 24px; height: 1px; }
.auth-t-v { width: 1px; height: 24px; }
.auth-t-dot {
  width: 5px; height: 5px; border-radius: 50%; z-index: 3;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: cBlink .8s ease-in-out infinite;
}

.auth-app-name {
  font-family: var(--fh); font-size: 1.5rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-subtitle {
  font-family: var(--fm); font-size: 9px; color: var(--sub);
  letter-spacing: .2em; text-transform: uppercase;
}

/* ── FORM ── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-label {
  font-family: var(--fm); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sub); padding-left: 2px;
}
.auth-inp-wrap { position: relative; }
.auth-inp-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .45; pointer-events: none;
}
.auth-inp-wrap .inp { padding-left: 40px; background: rgba(18,22,40,0.9); }

/* Cursor blink on focused input */
.auth-inp-wrap .inp:focus::placeholder { opacity: 0; }

.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--rs); color: #f87171;
  font-family: var(--fm); font-size: 11px; padding: 9px 13px;
  display: none; letter-spacing: .03em;
}
.auth-error.show { display: block; }

.auth-submit {
  margin-top: 6px; width: 100%; padding: 13px;
  font-size: 12px; letter-spacing: .12em;
}

/* Terminal-style footer */
.auth-footer {
  padding: 10px 18px;
  border-top: 1px solid rgba(45,212,255,0.08);
  font-family: var(--fm); font-size: 9px; color: rgba(100,112,160,0.5);
  letter-spacing: .1em; text-align: center;
  background: rgba(45,212,255,0.02);
}

@keyframes shake {
  0%,100%{transform:translateX(0);} 20%{transform:translateX(-8px);}
  40%{transform:translateX(8px);} 60%{transform:translateX(-5px);} 80%{transform:translateX(5px);}
}
.shake { animation: shake .4s ease; }
