/* =====================================================================
   PROTEOS — Estilos do porteiro de acesso (gate de senha)
   Mantido isolado para não interferir no resto do app.
   ===================================================================== */

html.proteos-locked,
html.proteos-locked body {
  overflow: hidden !important;
}

#proteosGate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(212, 175, 55, .18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(90, 120, 200, .20), transparent 55%),
    linear-gradient(160deg, #0c1424 0%, #0e1a2e 55%, #0a1120 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #eef2f8;
  -webkit-font-smoothing: antialiased;
}

#proteosGate[hidden] { display: none !important; }

#proteosGate .gate-card {
  width: 100%;
  max-width: 380px;
  background: rgba(18, 28, 46, .82);
  border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 20px;
  padding: 30px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
  text-align: center;
}

#proteosGate .gate-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
  color: #0c1424;
  background: linear-gradient(145deg, #f3d98b, #c9a227);
  box-shadow: 0 8px 22px rgba(201, 162, 39, .38);
}

#proteosGate h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: .2px;
  color: #fdf6e3;
}

#proteosGate .gate-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: #9fb0c8;
  margin: 0 0 22px;
}

#proteosGate label {
  display: block;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: #8fa0ba;
  margin: 0 0 7px 2px;
}

#proteosGate input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 16px; /* evita zoom no iOS */
  font-family: inherit;
  color: #f5f8ff;
  background: rgba(8, 14, 26, .78);
  border: 1px solid rgba(140, 165, 205, .28);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#proteosGate input[type="password"]:focus {
  border-color: rgba(212, 175, 55, .75);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .16);
}

#proteosGate input::placeholder { color: #5f7089; }

#proteosGate .gate-error {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #ff9b96;
  background: rgba(220, 70, 60, .10);
  border: 1px solid rgba(220, 70, 60, .28);
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
}

#proteosGate .gate-error[hidden] { display: none; }

#proteosGate button[type="submit"] {
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .3px;
  color: #0c1424;
  background: linear-gradient(145deg, #f3d98b, #cea92f);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 162, 39, .30);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

#proteosGate button[type="submit"]:hover { transform: translateY(-1px); }
#proteosGate button[type="submit"]:active { transform: translateY(0); }
#proteosGate button[type="submit"]:disabled { opacity: .65; cursor: default; transform: none; }

#proteosGate .gate-foot {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6d7f97;
}

#proteosGate .gate-foot a {
  color: #b9c8dd;
  text-decoration: none;
  border-bottom: 1px dotted rgba(185, 200, 221, .45);
}

#proteosGate .gate-foot a:hover { color: #f3d98b; border-color: #f3d98b; }

@media (max-width: 360px) {
  #proteosGate { padding: 14px; }
  #proteosGate .gate-card { padding: 24px 18px 20px; }
}
