/* Dev Authentication Modal Styles */

.dev-auth-modal {
  display: none; /* Hidden by default - shown by JS only when not authenticated */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

/* Show modal when user needs to authenticate */
.dev-auth-modal.show {
  display: flex !important;
}

/* Lock body scroll when auth modal is active */
body.auth-locked {
  overflow: hidden !important;
}

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

.dev-auth-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

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

.dev-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.dev-auth-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.dev-auth-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.dev-auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dev-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-auth-field label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.dev-auth-field input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dev-auth-field input:focus {
  outline: none;
  border-color: #007AFF;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.dev-auth-field input::placeholder {
  color: #999;
}

.dev-auth-error {
  color: #ff3b30;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  font-weight: 500;
}

.dev-auth-submit {
  background: #007AFF;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dev-auth-submit:hover:not(:disabled) {
  background: #0051D5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.dev-auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.dev-auth-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.dev-auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.dev-auth-footer small {
  font-size: 12px;
  color: #999;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .dev-auth-content {
    padding: 30px 20px;
  }
  
  .dev-auth-header h2 {
    font-size: 20px;
  }
}
