/* Case study password gate overlay */
#cs-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0e0e10;
  background-image: radial-gradient(circle at 50% 30%, rgba(232, 135, 90, 0.12), transparent 60%);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-gate-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 48px 36px;
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cs-gate-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.cs-gate-logo span {
  color: rgba(255, 255, 255, 0.55);
}
.cs-gate-logo em {
  color: #e8875a;
  font-style: normal;
}

.cs-gate-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

.cs-gate-copy {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px;
}

.cs-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-gate-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #fff;
  background: #0e0e10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.cs-gate-input:focus {
  border-color: #e8875a;
  box-shadow: 0 0 0 3px rgba(232, 135, 90, 0.2);
}

.cs-gate-btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #e8875a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.cs-gate-btn:hover {
  background: #f09a70;
  transform: translateY(-1px);
}

.cs-gate-error {
  display: none;
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: #ff6b6b;
}

.cs-gate-back {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.cs-gate-back:hover {
  color: #fff;
}

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