/**
 * AIOP Login Button Widget Styles
 *
 * Colori, bordi e tipografia del bottone: controlli Elementor (tab Stile → Stile Bottone).
 * Il tema fornisce solo struttura, transizioni ed effetti hover.
 *
 * @package AIOP_Theme
 */

.aiop-login-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid transparent;
  background-color: var(--aiop-login-btn-bg, transparent);
  color: inherit;
  padding: 0;
  border-radius: 8px;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  z-index: 1;
  --aiop-login-hover-zoom: 1.05;
}

.elementor-widget-aiop-button-login .aiop-login-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.aiop-login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--aiop-login-hover-bg, transparent);
  transition: left 0.4s ease;
  z-index: -1;
  border-radius: inherit;
}

.aiop-login-button:hover::before {
  left: 0;
}

.aiop-login-button__avatar {
  width: 40px;
  height: 40px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.aiop-login-button.aiop-login-button--state-logged {
  overflow: hidden;
}

.aiop-login-button__text {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.aiop-login-button.aiop-login-button--hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aiop-login-button.aiop-login-button--hover-zoom:hover {
  transform: scale(var(--aiop-login-hover-zoom));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aiop-login-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.aiop-login-sidebar-trigger {
  cursor: pointer;
}
