.login-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-modal.active {
  display: flex;
}

.login-modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  max-width: 450px;
  width: 90%;
  padding: 20px;
  position: relative;
}

.login-modal-close {
  position: absolute;
  top: 10px; left: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.login-modal-close:hover {
  color: var(--danger-color);
}

.login-header {
  text-align: center;
  margin-bottom: 15px;
}

.login-form .form-group {
  margin-bottom: 15px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.btn-primary {
  width: 100%;
  margin-top: 10px;
}
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.toggle-password {
  font-size: 1rem;
  position: absolute;
  top: 38px;
  left: 15px;
  cursor: pointer;
  color: #888;
}
#otp-modal {
  z-index: 10001; /* أعلى من login-modal */
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-inputs input {
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 1.5rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-inputs input:focus {
  border-color: #3366ff;
  box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.2);
}
