/*
 * Login / password recovery UI.
 * Isolato dal CSS principale per evitare regressioni causate da regole generiche.
 */
.auth-card .auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.auth-card .auth-label-row .form-label {
    flex: 0 0 auto;
    margin: 0;
    line-height: 1.25;
}

.auth-card .auth-recovery-link {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 0;
    color: var(--app-text);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.auth-card .auth-recovery-link:hover {
    color: #000;
    text-decoration: underline;
}

.auth-card .auth-password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.auth-card .auth-password-wrap .auth-password-input {
    width: 100%;
    padding-right: 54px !important;
}

.auth-card .auth-password-wrap .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--app-muted);
    background: transparent;
    box-shadow: none;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.auth-card .auth-password-wrap .auth-password-toggle i {
    display: block;
    width: auto;
    margin: 0 !important;
    font-size: 1.1rem;
    line-height: 1;
}

.auth-card .auth-password-wrap .auth-password-toggle:hover {
    color: var(--app-text);
    background: var(--app-soft);
}

.auth-card .auth-password-wrap .auth-password-toggle:focus-visible {
    outline: 2px solid #888f98;
    outline-offset: 1px;
}

.auth-card .auth-submit-btn {
    justify-content: center;
    text-align: center;
}

@media (max-width: 420px) {
    .auth-card .auth-label-row {
        gap: 8px;
    }

    .auth-card .auth-recovery-link {
        font-size: .76rem;
    }
}
