/* Syntropy Health — Auth Overlay & Modal */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: authFadeIn 0.3s ease;
}

.auth-overlay--fade-out {
  animation: authFadeOut 0.3s ease forwards;
}

.auth-modal {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.97), rgba(18, 18, 18, 0.97));
  border: 2px solid #4A90E2;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(74, 144, 226, 0.25);
  animation: authSlideIn 0.4s ease;
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  color: #f5f5f5;
}

.auth-lock {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.auth-modal h2 {
  color: #4A90E2;
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 400;
}

.auth-modal p {
  color: rgba(245, 245, 245, 0.75);
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(74, 144, 226, 0.3);
  border-radius: 12px;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.auth-input:focus {
  outline: none;
  border-color: #4A90E2;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
}

.auth-input::placeholder {
  color: rgba(245, 245, 245, 0.45);
}

.auth-error {
  display: none;
  color: #ff6b6b;
  font-size: 0.88rem;
  margin-top: 10px;
  margin-bottom: 0;
}

.auth-btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4A90E2, #3a7bc8);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.auth-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

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

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

@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
