* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #ffffff;
  background:
    linear-gradient(rgba(0,150,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,150,255,0.025) 1px, transparent 1px),
    radial-gradient(ellipse at 30% 50%, rgba(0,40,120,0.35), transparent 50%),
    radial-gradient(ellipse at 75% 20%, rgba(0,80,200,0.12), transparent 40%),
    linear-gradient(160deg, #020812 0%, #040d1c 50%, #010609 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%;
  overflow-x: hidden;
}

/* ── Layout ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 20px;
}

/* ── Lado esquerdo ───────────────────────────────────────── */
.login-left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 24px;
  flex: 0 0 auto;
}

/* Pontos decorativos */
.circuit-dots { position: absolute; inset: 0; pointer-events: none; }
.circuit-dots span {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0,200,255,0.5);
  box-shadow: 0 0 10px rgba(0,200,255,0.8);
}
.circuit-dots span:nth-child(1) { top:12%;left:18%; }
.circuit-dots span:nth-child(2) { top:18%;left:72%; }
.circuit-dots span:nth-child(3) { top:35%;left:8%; }
.circuit-dots span:nth-child(4) { top:42%;left:85%; }
.circuit-dots span:nth-child(5) { top:60%;left:12%; }
.circuit-dots span:nth-child(6) { top:68%;left:78%; }
.circuit-dots span:nth-child(7) { top:80%;left:25%; }
.circuit-dots span:nth-child(8) { top:88%;left:65%; }

.robot-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Balão */
.speech-bubble {
  position: relative;
  background: #ffffff;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 20px;
  margin-bottom: 8px;
  align-self: flex-start;
  margin-left: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: bubblePop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 20px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 4px solid transparent;
  border-top: 12px solid #ffffff;
}
.bubble-greeting-text { font-size: 16px; font-weight: 800; color: #0a1628; margin: 0; }
.bubble-sub { font-size: 12px; color: #4a6080; margin: 2px 0 0; }
.bubble-cursor { color: #0080ff; font-weight: 300; }

@keyframes bubblePop {
  0%   { opacity:0; transform:scale(.7) translateY(8px); }
  100% { opacity:1; transform:scale(1) translateY(0); }
}
@keyframes cursorBlink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Robô */
.robot-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 340px;
  height: 360px;
}
.robot-img {
  position: relative; z-index: 2;
  width: 320px; max-width: 100%; object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.5) saturate(1.3) brightness(1.0);
  animation: robotFloat 4s ease-in-out infinite;
}
.robot-platform { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 280px; z-index: 1; }
.platform-ring {
  position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(0,200,255,0.6);
  box-shadow: 0 0 20px rgba(0,200,255,0.4), inset 0 0 20px rgba(0,200,255,0.1);
}
.ring-1 { width: 280px; height: 60px; bottom: 0; }
.ring-2 { width: 200px; height: 40px; bottom: 8px; border-color: rgba(0,200,255,0.35); }
.platform-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 220px; height: 30px; border-radius: 50%;
  background: rgba(0,180,255,0.25); filter: blur(15px);
}
@keyframes robotFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-14px); } }

/* ── Lado direito — CARD REDESENHADO ─────────────────────── */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 24px;
  flex: 0 0 auto;
}

.login-card {
  width: 400px;
  position: relative;
  padding: 48px 40px 36px;

  /* Vidro escuro refinado */
  background: linear-gradient(145deg,
    rgba(6, 20, 55, 0.95) 0%,
    rgba(3, 10, 30, 0.98) 100%
  );
  backdrop-filter: blur(24px);

  /* Borda com gradiente */
  border-radius: 20px;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.2),
    0 0 60px rgba(0,150,255,0.15),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Linha neon topo */
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,200,255,0.9) 30%,
    rgba(100,220,255,1) 50%,
    rgba(0,200,255,0.9) 70%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(0,220,255,0.6), 0 0 32px rgba(0,200,255,0.3);
  border-radius: 20px 20px 0 0;
}

/* Brilho canto superior direito */
.login-card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(0,160,255,0.08);
  filter: blur(40px);
  pointer-events: none;
}

/* Ícone escudo */
.shield-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #00e0ff;
  background: linear-gradient(135deg, rgba(0,200,255,0.15), rgba(0,100,200,0.1));
  border: 1px solid rgba(0,200,255,0.4);
  border-radius: 18px;
  box-shadow:
    0 0 24px rgba(0,200,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(0,200,255,0.2);
}

.card-subtitle {
  font-size: 13px;
  color: rgba(140,190,220,0.65);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.2px;
}

/* Campos */
.field-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.field-icon {
  position: absolute; left: 16px;
  color: rgba(0,200,255,0.6);
  font-size: 17px;
  pointer-events: none;
  transition: color .2s;
}
.field-group:focus-within .field-icon { color: rgba(0,220,255,0.9); }

.field-group input {
  width: 100%;
  height: 52px;
  padding: 0 48px;
  border-radius: 12px;
  border: 1px solid rgba(0,200,255,0.2);
  background: rgba(0, 8, 24, 0.7);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: .25s;
  letter-spacing: 0.2px;
}
.field-group input::placeholder { color: rgba(120,170,200,0.45); }
.field-group input:focus {
  border-color: rgba(0,210,255,0.65);
  background: rgba(0,12,32,0.85);
  box-shadow:
    0 0 0 3px rgba(0,200,255,0.08),
    0 0 20px rgba(0,200,255,0.15);
}
.field-eye {
  position: absolute; right: 14px;
  border: none; background: transparent;
  color: rgba(100,160,200,0.6);
  font-size: 17px; cursor: pointer;
  transition: color .2s;
}
.field-eye:hover { color: #00d4ff; }

/* Linha lembrar */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 28px;
}
.remember-label {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(150,195,225,0.7);
  cursor: pointer; user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #00c8ff;
  cursor: pointer;
}
.forgot-link {
  font-size: 13px; color: #00c8ff;
  text-decoration: none; transition: .2s;
  font-weight: 600;
}
.forgot-link:hover { color: #66e0ff; text-shadow: 0 0 10px rgba(0,210,255,0.5); }

/* Botão */
.enter-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #0077cc, #00b8f0, #33e8ff);
  color: #021428;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow:
    0 0 30px rgba(0,200,255,0.45),
    0 8px 20px rgba(0,100,200,0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: .25s;
  position: relative;
  overflow: hidden;
}
.enter-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left .5s;
}
.enter-btn:hover::before { left: 150%; }
.enter-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 45px rgba(0,210,255,0.65),
    0 12px 28px rgba(0,100,200,0.4),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.enter-btn:active { transform: translateY(0); }
.enter-btn i { font-size: 19px; }

/* Erro */
.login-error {
  margin-top: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(255,60,90,0.5);
  border-radius: 10px;
  color: #ff6080;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: rgba(40,5,15,0.85);
  box-shadow: 0 0 16px rgba(255,50,80,0.1);
}

/* Rodapé */
.card-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: rgba(100,150,180,0.5);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  letter-spacing: 0.3px;
}
.card-footer i { color: rgba(0,200,255,0.5); font-size: 12px; }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .login-page { flex-direction: column; }
  .login-left { padding-right: 0; padding-bottom: 20px; }
  .login-right { padding-left: 0; }
  .robot-wrapper { width: 260px; height: 280px; }
  .robot-img { width: 240px; }
  .ring-1 { width: 220px; height: 46px; }
  .ring-2 { width: 160px; height: 32px; }
  .login-card { width: 100%; max-width: 400px; }
}
