/* gate.css — Overlay de acceso al prototipo */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

.sd-gate {
  position: fixed; inset: 0;
  z-index: 9999;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(76, 195, 232, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(61, 219, 132, 0.10), transparent 60%),
    linear-gradient(160deg, #00163C 0%, #001E50 60%, #00163C 100%);
  display: grid; place-items: center;
  padding: 24px;
  animation: sd-gate-in .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes sd-gate-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sd-gate-out {
  animation: sd-gate-out .24s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes sd-gate-out {
  to { opacity: 0; transform: scale(.99); }
}

.sd-gate-card {
  width: min(460px, 100%);
  background: #152038;
  border: 1px solid #2A3A5E;
  border-radius: 18px;
  padding: 32px 36px;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.04) inset;
  position: relative;
  overflow: hidden;
  font-family: 'Geist', system-ui, sans-serif;
  color: #fff;
}
.sd-gate-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #4CC3E8, #3DDB84, #4CC3E8);
}
.sd-gate-shake {
  animation: sd-gate-shake .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes sd-gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.sd-gate-top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.sd-gate-mark {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 10px 28px -10px rgba(0,0,0,0.6);
}
.sd-gate-mark img {
  width: 80%; height: 80%; object-fit: contain;
}
.sd-gate-eyebrow {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4CC3E8;
  background: rgba(76, 195, 232, 0.14);
  border: 1px solid rgba(76, 195, 232, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sd-gate-card h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}
.sd-gate-desc {
  color: #B8C2D6;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 8px 0 22px;
}
.sd-gate-desc b { color: #fff; font-weight: 600; }

.sd-gate-field {
  display: block;
  margin-bottom: 14px;
}
.sd-gate-lbl {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7E8AA8;
  margin-bottom: 7px;
}
.sd-gate-field input {
  width: 100%;
  height: 44px;
  background: #00163C;
  border: 1px solid #2A3A5E;
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: border-color .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s cubic-bezier(.2,.8,.2,1);
}
.sd-gate-field input::placeholder { color: #7E8AA8; }
.sd-gate-field input:focus {
  outline: none;
  border-color: #3DDB84;
  box-shadow: 0 0 0 3px rgba(61, 219, 132, 0.18);
}

.sd-gate-pwd { position: relative; }
.sd-gate-pwd input { padding-right: 44px; }
.sd-gate-pwd #sd-gate-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: #7E8AA8;
  border-radius: 7px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .12s cubic-bezier(.2,.8,.2,1), color .12s cubic-bezier(.2,.8,.2,1);
}
.sd-gate-pwd #sd-gate-toggle:hover { background: rgba(255,255,255,0.05); color: #fff; }

.sd-gate-error {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #F77B6E;
  background: rgba(247, 123, 110, 0.10);
  border: 1px solid rgba(247, 123, 110, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.sd-gate-btn {
  width: 100%;
  height: 48px;
  background: #3DDB84;
  color: #001E50;
  border: none;
  border-radius: 11px;
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .12s cubic-bezier(.2,.8,.2,1), transform .12s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 8px 24px -10px rgba(61, 219, 132, 0.5);
}
.sd-gate-btn:hover { background: #2BC971; }
.sd-gate-btn:active { transform: translateY(1px); }

.sd-gate-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #1F2E50;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #7E8AA8;
  text-transform: uppercase;
}
