/* Wrapper generale */
.aa-auth-tabs-wrapper {
    margin: 0 auto 3rem;
    overflow: hidden;
}

/* Nasconde i radio */
.aa-auth-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Navbar dei tab */
.aa-auth-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f7f7f7;
}

/* Label dei tab */
.aa-auth-tab-label {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-bottom-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

/* Stato "attivo" via radio :checked */
#aa-tab-login:checked ~ .aa-auth-tabs-nav .aa-auth-tab-label-login,
#aa-tab-register:checked ~ .aa-auth-tabs-nav .aa-auth-tab-label-register {
    background-color: #ffffff;
    border-bottom-color: #2271b1; /* colore Woo standard */
    color: #222;
}

/* Pannelli */
.aa-auth-tabs-panels {
    padding: 1.5rem 1.5rem 1.25rem;
}

/* Nasconde i pannelli di base */
.aa-auth-tab-panel {
    display: none;
}

/* Mostra pannello Login quando tab Login è attivo */
#aa-tab-login:checked ~ .aa-auth-tabs-panels .aa-auth-tab-panel-login {
    display: block;
}

/* Mostra pannello Register quando tab Register è attivo */
#aa-tab-register:checked ~ .aa-auth-tabs-panels .aa-auth-tab-panel-register {
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    .aa-auth-tabs-wrapper {
        margin: 0 1rem 2rem;
        border-radius: 4px;
    }

    .aa-auth-tabs-panels {
        padding: 1rem;
    }

    .aa-auth-tab-label {
        padding: 0.6rem 0.4rem;
        font-size: 0.9rem;
    }
}

/* Piccolo ritocco ai form per stare bene dentro il box */
.aa-auth-tabs-wrapper .woocommerce-form-row {
    margin-bottom: 0.75rem;
}

.aa-auth-tabs-wrapper .woocommerce-form-login__submit,
.aa-auth-tabs-wrapper .woocommerce-form-register__submit {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.woocommerce-Input{
    height: 50px !important;
    -moz-border-radius: var(--border-radius);
    -webkit-border-radius: var(--border-radius);
    border: 1px solid #e5e5e5 !important;
  }
  .woocommerce-button{
    height: 50px !important;
    -moz-border-radius: var(--border-radius);
    -webkit-border-radius: var(--border-radius);
    text-transform: lowercase !important;
  }
  .woocommerce-form label{
    color: #222222 !important;
    text-transform: lowercase !important;
  }