
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 1rem;
}

.login-modal-content {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  border: 1px solid var(--neutral-200);
}

.login-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--neutral-400);
  transition: color 0.3s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.login-modal-close:hover {
  color: var(--danger-color);
}

.login-modal-content h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
  font-weight: 700;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.login-form .form-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #000;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.login-form .form-group input:hover {
  box-shadow: 0 0 0 0.5px #000;
}

.login-form .form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.5px #000;
}

.login-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.login-btn {
  padding: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: #165DFF;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  width: 100%;
}

.login-btn:hover {
  background-color: #0E42D2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.login-secondary {
  padding: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: white;
  color: black;
  border: 1px solid #000;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-secondary:hover {
  transform: translateY(-1px);
}

.login-status {
  color: var(--neutral-500);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

/* Optional: small chip when logged in (in navbar) */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #000;
  font-size: 0.9rem;
}
.user-initials {
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 1px solid #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}

.hidden { display: none !important; }