/* ==========================================================================
   Chester — Gatekeeper Screen (Acceso Especial / Staging Gateway)
   ========================================================================== */

.gate-body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep, #050507);
  color: var(--text-pure, #ffffff);
  font-family: var(--font-sans, Inter, sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

.gate-viewport {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

/* Ambient Aurora Glow Layer */
.gate-aurora-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(86, 131, 218, 0.16) 0%,
    rgba(184, 85, 231, 0.10) 45%,
    rgba(255, 107, 53, 0.04) 70%,
    transparent 85%
  );
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
  animation: gateAuroraDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

/* Centered Gate Card */
.gate-card-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
}

.gate-card {
  background: rgba(12, 12, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 44px 36px 36px 36px;
  box-shadow: 
    0 16px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gate-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.gate-brand-header .platform-brand-badge {
  margin-bottom: 0;
}



.gate-titles-group {
  text-align: center;
  margin-bottom: 28px;
}

.gate-title {
  font-family: var(--font-display, inherit);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 10px;
}


/* Form Styling */
.gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gate-form .form-field {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon-left {
  position: absolute;
  left: 14px;
  color: #666675;
  pointer-events: none;
  transition: color 0.2s ease;
}

.gate-form input {
  padding-left: 40px !important;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.gate-form input:focus ~ .field-icon-left {
  color: var(--accent-steel, #5683da);
}

.btn-gate-action {
  margin-top: 6px;
  height: 46px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: #ffffff;
  color: #070709;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gate-action:hover {
  background: #ebebf0;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-gate-action:active {
  transform: translateY(0);
}

/* Shake Animation on Error */
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: gateShake 0.4s ease-in-out;
}


@media (max-width: 480px) {
  .gate-card {
    padding: 32px 24px 28px 24px;
    border-radius: 16px;
  }
  .gate-title {
    font-size: 1.45rem;
  }
}

@keyframes gateAuroraDrift {
  0% { transform: translate(-56%, -48%) rotate(-8deg) scale(0.95); }
  50% { transform: translate(-45%, -56%) rotate(6deg) scale(1.08); }
  100% { transform: translate(-48%, -42%) rotate(12deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-aurora-layer { animation: none; will-change: auto; }
}
