/* Borde rojo para inputs con error */
.cchc-form-field.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 1px #dc3545 inset;
}
/* Mensaje de error oculto por defecto si no trae display inline */
.cchc-error-message {
  display: none;
}

.alert-notifications.alert-notifications-fixed {
  display: none;
}

.cchc-google-btn {
  background-color: #ffffff;
  border: 1px solid #dcdfe5;
  color: #3c4043;
  width: 100%;
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.2s ease;
}

.cchc-google-btn:hover {
  background-color: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.cchc-google-btn:active {
  background-color: #f1f3f4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.cchc-google-btn:disabled {
  background-color: #f8f9fa;
  color: #9aa0a6;
  border-color: #f8f9fa;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Estado de carga en botón Google */
.cchc-google-btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.cchc-google-btn.loading .google-btn-content {
  visibility: hidden;
}
.cchc-google-btn.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid #9aa0a6;
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: google-spin 0.8s linear infinite;
}
@keyframes google-spin {
  to {
    transform: rotate(360deg);
  }
}

.google-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.google-icon {
  flex-shrink: 0;
}

.google-btn-text {
  font-weight: 500;
  white-space: nowrap;
}

.google-login-error-message {
  margin-top: 1rem;
}

/* CCHC Loader */

/* CCHC Full-screen Loader Overlay */
.cchc-loader-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* above most UI */
}

.cchc-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  transform: translateZ(0);
}

.cchc-loader-text {
  font-size: 1rem;
  color: #6c757d; /* subtle gray */
}

/* Spinner */
.cchc-loader-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* 75% arc in primary, 25% in track */
  background: conic-gradient(#006edc 0 270deg, #e6e6eb 270deg 360deg);
  /* Hollow center (ring) with 6px thickness) */
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 6px),
    #000 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
  animation: cchc-spin 0.9s linear infinite;
}

@keyframes cchc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
