/* From Uiverse.io by adamgiebl - Bouton Connexion header (couleurs thème Olyfit #0043FF) */

.cssbuttons-io-button {
  background: #0043FF !important;
  color: #fff !important;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 1.2em;
  font-size: 17px;
  font-weight: 500;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em rgba(0, 50, 180, 0.9) !important;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  cursor: pointer;
  text-decoration: none;
}

.cssbuttons-io-button .icon {
  background: #fff !important;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 0.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em rgba(0, 50, 180, 0.6) !important;
  right: 0.3em;
  transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: #0043FF !important;
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.95);
}

/* Mobile : bouton simplifié (texte seul, sans icône) pour éviter débordement et recadrage */
@media (max-width: 900px) {
  .navbar .cssbuttons-io-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    height: 48px !important;
    min-height: 48px;
    padding: 0 1em !important;
    padding-right: 1em !important;
    box-sizing: border-box !important;
    font-size: 16px;
    justify-content: center;
    overflow: hidden;
    box-shadow: none !important;
  }
  .navbar .cssbuttons-io-button .icon {
    display: none !important;
  }
  .navbar .cssbuttons-io-button #login-link-text {
    margin: 0;
  }
}
