/* ==========================================================================
   Login – richiede dist/css/pages/aster-base.css
   ========================================================================== */

#card-login {
    max-width: 400px;
}

/* ===== Logo ===== */
.logo-wrap {
    text-align: center;
    margin-bottom: 22px;
    animation: fadeIn .9s .2s both;
}
.logo-wrap img {
    width: 52%;
    max-width: 190px;
    filter: drop-shadow(0 4px 18px rgba(2,117,216,.45));
    animation: logoGlow 3.5s ease-in-out infinite alternate;
}

/* ===== Testata ===== */
.login-head {
    text-align: center;
    margin-bottom: 22px;
    animation: fadeIn .8s .35s both;
}
.login-title {
    color: var(--text-pri);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .2px;
}
.login-sub {
    color: var(--text-sec);
    font-size: .85rem;
    line-height: 1.6;
    margin-top: 6px;
}

/* ===== Avviso One To One ===== */
.login-notice {
    margin-bottom: 22px;
    animation: fadeIn .8s .3s both;
}

/* ===== Form ===== */
.login-form .input-wrap { animation: fadeIn .8s .45s both; }
.login-form .input-wrap + .input-wrap { margin-top: 12px; animation-delay: .55s; }

/* Occhio mostra/nascondi password */
.password-toggle {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: none;
    padding: 0;
    color: rgba(255,255,255,.35);
    font-size: .88rem;
    cursor: pointer;
    border-radius: 8px;
    transition: color .25s, background .25s;
}
.password-toggle:hover { color: var(--text-pri); background: rgba(255,255,255,.06); }
.password-toggle:focus-visible {
    outline: none;
    color: var(--text-pri);
    box-shadow: 0 0 0 3px rgba(2,117,216,.3);
}
/* spazio a destra per non far finire il testo sotto l'icona */
#password { padding-right: 46px; }

.login-submit { margin-top: 20px; animation: fadeIn .8s .65s both; }

/* Stato di caricamento del pulsante */
.af-btn.is-loading {
    pointer-events: none;
    opacity: .75;
}
.af-btn.is-loading .btn-label { opacity: .85; }

/* ===== Link al tutorial ===== */
.login-foot {
    margin-top: 22px;
    text-align: center;
    animation: fadeIn .8s .75s both;
}
.login-foot a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-sec);
    font-size: .82rem;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: color .25s, background .25s;
}
.login-foot a:hover {
    color: var(--text-pri);
    background: rgba(255,255,255,.05);
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 380px) {
    .card-inner  { padding: 24px 18px 20px; }
    .login-title { font-size: 1.32rem; }
}
