/* Login Modal Styles */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002; /* Above cookie banner */
  display: none;
}

.login-modal--visible .login-modal__overlay {
  opacity: 1;
}

.login-modal--visible .login-modal__content {
  transform: translateY(0);
  opacity: 1;
}

.login-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

.login-modal__content {
  position: relative;
  background: white;
  max-width: 500px;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.login-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #0056b3;
  color: white;
  border-radius: 12px 12px 0 0;
}

.login-modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.login-modal__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: white;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.login-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.login-modal__form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-help {
  margin: 0.5rem 0 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
}

.form-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.login-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
}

.login-modal__button {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  min-width: 100px;
}

.login-modal__button--primary {
  background: #0056b3;
  color: white;
}

.login-modal__button--primary:hover {
  background: #004494;
}

.login-modal__button--secondary {
  background: white;
  color: #0056b3;
  border-color: #0056b3;
}

.login-modal__button--secondary:hover {
  background: #f3f4f6;
}

.login-modal__disclaimer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.login-modal__disclaimer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 640px) {
  .login-modal__content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .login-modal__footer {
    flex-direction: column;
  }
  
  .login-modal__button {
    width: 100%;
    min-width: auto;
  }
}
