/* ─── Password Gate — Clean Minimal ─── */
.sw-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1120;
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.sw-gate-overlay.sw-gate-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sw-gate-card {
  width: 100%;
  max-width: 340px;
  margin: 0 24px;
  text-align: center;
}

/* Logo */
.sw-gate-logo {
  height: 32px;
  margin: 0 auto 40px;
  display: block;
  opacity: 0.9;
}

/* Title */
.sw-gate-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

/* Subtitle */
.sw-gate-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 28px;
  line-height: 1.55;
  font-weight: 400;
}

/* Form */
.sw-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Input */
.sw-gate-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f9fafb;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}
.sw-gate-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}
.sw-gate-input:focus {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(44, 74, 124, 0.12);
}
.sw-gate-input.sw-gate-error {
  border-color: rgba(196, 75, 75, 0.5);
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.08);
}

/* Error message */
.sw-gate-error-msg {
  font-size: 0.75rem;
  color: #e06060;
  margin: 8px 0 0;
  min-height: 18px;
  transition: opacity 0.2s ease;
  font-weight: 400;
}

/* Button */
.sw-gate-btn {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: #2c4a7c;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.sw-gate-btn:hover {
  background: #365d9c;
}
.sw-gate-btn:active {
  transform: scale(0.985);
  opacity: 0.9;
}

/* Footer */
.sw-gate-footer {
  margin-top: 48px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.01em;
}
.sw-gate-footer a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}
.sw-gate-footer a:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* Subtle entrance animation */
.sw-gate-card {
  animation: gateEntrance 0.6s ease both;
}
@keyframes gateEntrance {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .sw-gate-title { font-size: 1.05rem; }
  .sw-gate-logo { height: 28px; }
  .sw-gate-card { max-width: 300px; }
}
