/* Password Gate Styles */

#password-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.password-gate-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.password-gate-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-gate-logo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 30px 30px;
  text-align: center;
}

.password-gate-logo h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.password-gate-logo .subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  opacity: 0.9;
  font-weight: 400;
}

.password-gate-form {
  padding: 40px 30px;
}

.password-gate-form h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
}

.password-gate-form > p {
  margin: 0 0 30px;
  font-size: 15px;
  color: #2d3748;
  line-height: 1.5;
}

#password-form {
  margin-bottom: 20px;
}

#password-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
  color: #2d3748;
}

#password-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#submit-btn {
  width: 100%;
  padding: 14px 18px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

#submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-message {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.password-gate-footer {
  background: #f7fafc;
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.password-gate-footer p {
  margin: 0;
  font-size: 14px;
  color: #4a5568;
}

.password-gate-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.password-gate-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Shake animation for incorrect password */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.5s ease;
}

/* Loading spinner */
.btn-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .password-gate-container {
    padding: 15px;
  }

  .password-gate-logo {
    padding: 30px 20px 25px;
  }

  .password-gate-logo h1 {
    font-size: 28px;
  }

  .password-gate-form {
    padding: 30px 20px;
  }

  .password-gate-form h2 {
    font-size: 20px;
  }

  .password-gate-footer {
    padding: 15px 20px;
  }
}
